O'Reilly logo

OpenCV Essentials by Jesus Salido Tercero, Julio Alberto Patón Incertis, Ismael Serrano Gracia, Gloria Bueno García, Noelia Vállez Enano, Mª del Milagro Fernández Carrobles, Oscar Deniz Suarez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Descriptor matchers

DescriptorMatcher is an abstract base class to match keypoint descriptors that, as happens with DescriptorExtractor, make programs more flexible than using matchers directly. With the Ptr<DescriptorMatcher> DescriptorMatcher::create(const string& descriptorMatcherType) function, we can create a descriptor matcher of the desired type. The following are the supported types:

  • BruteForce-L1: This is used for float descriptors. It uses L1 distance and is efficient and fast.
  • BruteForce: This is used for float descriptors. It uses L2 distance and can be better than L1, but it needs more CPU usage.
  • BruteForce-SL2: This is used for float descriptors and avoids square root computation from L2, which requires high CPU usage.
  • BruteForce-Hamming ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required