Ask Your Question

Where to find implementation of BFMatcher::match

asked 2020-08-29 00:17:08 -0600

NitinPrasad gravatar image

I want to study the implementation of BFMatcher to make some modifications.

I have found this file:, which contains implementation of ocl_match in BFMatcher, but I am not able to find any implementation for ordinary match. Where can I find the code that executes when BFMatcher.match(...) is called if HAVE_OPENCL is not true?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-08-29 00:48:09 -0600

berak gravatar image

match() is implemented in the base class, DescriptorMatcher, which holds a pointer to either BFMatcher or FlannBasedMatcher (PIMPL)

it then calls knnMatch, and you will find the BFMatcher implementation here

edit flag offensive delete link more



Thank you!

NitinPrasad gravatar imageNitinPrasad ( 2020-08-29 02:39:38 -0600 )edit

admittedly, it's complicated ;)

berak gravatar imageberak ( 2020-08-29 04:20:53 -0600 )edit

Question Tools

1 follower


Asked: 2020-08-29 00:17:08 -0600

Seen: 345 times

Last updated: Aug 29 '20