mirror of
https://github.com/opencv/opencv.git
synced 2026-09-25 04:09:57 +03:00
1b973eb0d2cf2c6e0de375705283271e22ef25fd
core: fix RVV widening load lane count (#29907) - #29921 # core: fix RVV widening load lane count Partially fixes #29907. The RVV `v_load_expand` implementation used the source vector lane count for the widening load. For widening loads, the number of loaded elements must match the destination widened vector lane count instead. This change: * uses `VTraits<_Tpwvec>::vlanes()` for the RVV widening load and conversion; * adds regression coverage for `texpr` `select()` with byte masks across multiple data types, channel counts, mask types, strided matrices, and in-place output. ### Pull Request Readiness Checklist See details at the OpenCV contribution guidelines. * [x] I agree to contribute to the project under Apache 2 License. * [x] To the best of my knowledge, the proposed patch is not based on code under GPL or another license that is incompatible with OpenCV. * [x] The PR is proposed to the proper branch. * [x] There is a reference to the original bug report and related work. * [x] There is an accuracy/regression test where applicable. * [x] The change does not require documentation or sample updates.
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: https://opencv.org
- Courses: https://opencv.org/courses
- Docs: https://docs.opencv.org/5.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.
Languages
C++
86%
Python
4.1%
C
2.9%
CMake
2.2%
Java
1.6%
Other
3.1%