Files
opencv-MIRROR/modules/features/test
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
..
2026-06-05 21:13:24 +05:30
2026-07-09 12:17:24 +03:00
2026-07-09 12:17:24 +03:00