mirror of
https://github.com/opencv/opencv.git
synced 2026-01-18 17:21:42 +01:00
a27a13921b6a47780bde064e931b38d969fc18de
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
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: https://opencv.org
- Courses: https://opencv.org/courses
- Docs: https://docs.opencv.org/4.x/
- Q&A forum: https://forum.opencv.org
- previous forum (read only): http://answers.opencv.org
- Issue tracking: https://github.com/opencv/opencv/issues
- Additional OpenCV functionality: https://github.com/opencv/opencv_contrib
- Donate to OpenCV: https://opencv.org/support/
Contributing
Please read the contribution guidelines before starting work on a pull request.
Summary of the guidelines:
- One pull request per issue;
- Choose the right base branch;
- Include tests and documentation;
- Clean up "oops" commits before submitting;
- Follow the coding style guide.
Additional Resources
- Submit your OpenCV-based project for inclusion in Community Friday on opencv.org
- Subscribe to the OpenCV YouTube Channel featuring OpenCV Live, an hour-long streaming show
- Follow OpenCV on LinkedIn for daily posts showing the state-of-the-art in computer vision & AI
- Apply to be an OpenCV Volunteer to help organize events and online campaigns as well as amplify them
- Follow OpenCV on Mastodon in the Fediverse
- Follow OpenCV on Twitter
- OpenCV.ai: Computer Vision and AI development services from the OpenCV team.
Description
Languages
C++
87.5%
C
3.1%
Python
3%
CMake
2%
Java
1.5%
Other
2.7%