Options
All
  • Public
  • Public/Protected
  • All
Menu

This matcher trains cv::flann::Index on a train descriptor collection and calls its nearest search methods to find the best matches. So, this matcher may be faster when matching a large train collection than the brute force matcher. FlannBasedMatcher does not support masking permissible matches of descriptor sets because flann::Index does not support this. :

Source: opencv2/features2d.hpp.

Hierarchy

  • FlannBasedMatcher

Index

Constructors

constructor

Methods

add

  • add(descriptors: InputArrayOfArrays): InputArrayOfArrays
  • If the collection is not empty, the new descriptors are added to existing train descriptors.

    Parameters

    • descriptors: InputArrayOfArrays

      Descriptors to add. Each descriptors[i] is a set of descriptors from the same train image.

    Returns InputArrayOfArrays

clear

  • clear(): void

clone

  • clone(emptyTrainData?: bool): Ptr
  • Parameters

    • Optional emptyTrainData: bool

      If emptyTrainData is false, the method creates a deep copy of the object, that is, copies both parameters and train data. If emptyTrainData is true, the method creates an object copy with the current parameters but with empty train data.

    Returns Ptr

isMaskSupported

  • isMaskSupported(): bool

read

train

  • train(): void
  • Trains a descriptor matcher (for example, the flann index). In all methods to match, the method [train()] is run every time before matching. Some descriptor matchers (for example, BruteForceMatcher) have an empty implementation of this method. Other matchers really train their inner structures (for example, [FlannBasedMatcher] trains [flann::Index] ).

    Returns void

write

Static create

  • create(): Ptr

Generated using TypeDoc