1 | initial version |
BruteForceMatcher is deprecated. However you can still use it by including legacy.hpp. Alternatively you can use the newer way by calling:
BFMatcher matcher(cv::NORM_L2) (click for Docu)
or use:
matcher = cv::DescriptorMatcher::create("BruteForce")
(Note that this actually gives you a cv::Ptr<cv::descriptormatcher> back.). Also note that afaik it is currently not possible to use its own distance-measures, so you are restricted by NORM_L1, NORM_L2, NORM_HAMMING, NORM_HAMMING2. But in the most cases they should be sufficient.