mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 12:52:33 -05:00
aee03ffbb2b967ad7cdf0fa8fefed42f8283d7a8
Defer the u8→i16 widening (vzext) in the pre-screen phase until after the quick-reject check passes. This avoids 5 unnecessary widen operations per pixel-strip when the pre-screen rejects (which happens ~70-80% of the time at the default threshold=20). The approach uses u8mf2 (same VL as i16m1) for the pre-screen comparison with vssubu/vsaddu for bounds and vmsgtu for unsigned comparison. When the pre-screen passes, the already-loaded u8mf2 variables are widened to i16m1 for the score computation, reusing the same data without redundant memory loads. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.6%
C
3.2%
Python
2.9%
CMake
2%
Java
1.5%
Other
2.6%