xfeatures2d: fix matchLOGOS crash with fewer than N neighbors - #4182
xfeatures2d: fix matchLOGOS crash with fewer than N neighbors#4182JaimeFine wants to merge 1 commit into
Conversation
|
The failing GitHub Actions run appears to be unrelated to this patch. The workflow parser fails before running tests because Local validation for this patch completed successfully. |
|
Hi OpenCV maintainers, gentle follow-up on this small This PR fixes #4174 by avoiding an out-of-bounds access in I noticed the GitHub Actions workflow did not reach the test stage because of what looks like an unrelated reusable-workflow reference issue. I validated locally on Windows with OpenCV 5.x + opencv_contrib 5.x by building Please let me know if there is anything I should adjust to make the PR easier to review. Also happy to retarget or rebase if Thanks! |
Fixes #4174
Point::nearestNeighboursNaive()when fewer thanNneighbors are available.nnVectorto the actual neighbor count to avoid invalid trailing neighbor entries.matchLOGOSreproducer.Tested:
opencv_test_xfeatures2don Windows with OpenCV 5.x + opencv_contrib 5.xOPENCV_TEST_DATA_PATHset toC:\dev\opencv_extra\testdataPull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.