Commit Graph

6 Commits

Author SHA1 Message Date
pbkx
043c56d04c features2d: clear knnMatch output before matching (#30856)
The current implementation of DescriptorMatcher::knnMatch() passes the output vector to the matcher implementation without clearing it. This means that when the output is reused, BFMatcher will add more query-result vectors to the output. Similarly, FLANN will add matches to existing inner vectors. If the query is empty, then the previous results are retained.

This PR adds back the call to matches.clear() in the common wrapper. It also adds new regression tests for multiple calls to BFMatcher and FLANN. It also covers empty queries and empty stored training collections.
2026-11-17 11:02:19 +05:30
Abhishek Gola
0d88e1933a Merge pull request #29331 from agrim-rai/slamVO
[GSOC] Added Visual Odometry (VO) for SLAM
2026-07-25 10:34:00 +05:30
Anand Mahesh
0fb620f0f0 Fix: BFMatcher isMaskSupported false on crossCheck
isMaskSupported now returns false when the matcher is
created with crossCheck enabled, because the mask
path is unsupported in that mode. knnMatchImpl also
drops the mask so it cannot reach batchDistance and
trigger its mask.empty() assertion.

https://github.com/opencv/opencv/issues/22093
2026-07-13 08:56:07 +05:30
Agrim Rai
f552e8ac82 slam VO modular matcher changes/fixes 2026-07-07 21:12:37 +05:30
Alexander Smorkalov
7bde3f9ae9 Merge branch 4.x 2026-04-24 11:11:26 +03:00
WU Jia
614e250fd3 Merge pull request #26405 from kaingwade:rename_features2d
Rename features2d #26405

This PR renames the module _features2d_ to _features_ as one of the Big OpenCV Cleanup #25007. 
Related PR: opencv/opencv_contrib: [#3820](https://github.com/opencv/opencv_contrib/pull/3820) opencv/ci-gha-workflow: [#192](https://github.com/opencv/ci-gha-workflow/pull/192)
2024-11-12 11:04:48 +03:00