Ask Your Question
0

Where to find implementation of BFMatcher::match

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

NitinPrasad gravatar image

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

I have found this file: https://github.com/opencv/opencv/blob..., 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?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

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

Comments

1

Thank you!

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

admittedly, it's complicated ;)

berak gravatar imageberak ( 2020-08-29 04:20:53 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 35 times

Last updated: Aug 29