1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00
Files
opencv/modules/imgproc/src
Ghazi-raad a27a13921b Fix LINE_4/LINE_8 swap in drawContours (issue #26413)
Changed condition to correctly route LINE_8 to Line() instead of Line2().

The condition 'line_type == 1 || line_type == 4' was causing LINE_8 (value 8)
to be processed by Line2() which implements 4-connectivity, and LINE_4 (value 4)
to be processed by Line() which was implementing 8-connectivity behavior. This
resulted in swapped line connectivity.

Changed to 'line_type == 1 || line_type == 8' so LINE_8 goes to Line() with
8-connectivity and LINE_4 goes to Line2() with 4-connectivity, matching the
documented behavior where LINE_4 should produce 4-connected lines and LINE_8
should produce 8-connected lines.

Fixes #26413
2025-11-26 21:41:28 +00:00
..
2024-12-26 12:15:46 +00:00
2025-01-27 11:55:10 +01:00
2025-07-08 12:31:40 +02:00
2024-03-05 12:15:39 +03:00
2024-03-05 12:15:39 +03:00
2025-10-16 22:18:39 +03:00
2024-04-30 18:07:21 +08:00
2025-01-31 21:12:36 +05:30
2024-03-05 12:15:39 +03:00