Table of Contents

Class FeaturesMatcher

Namespace
OpenCvSharp.Detail
Assembly
OpenCvSharp.dll

Feature matchers base class.

public abstract class FeaturesMatcher : DisposableCvObject, IDisposable, ICvPtrHolder
Inheritance
FeaturesMatcher
Implements
Derived
Inherited Members

Constructors

FeaturesMatcher(nint)

Constructor

protected FeaturesMatcher(nint ptr)

Parameters

ptr nint

Methods

Apply(ImageFeatures, ImageFeatures)

Performs images matching.

public virtual MatchesInfo Apply(ImageFeatures features1, ImageFeatures features2)

Parameters

features1 ImageFeatures

First image features

features2 ImageFeatures

Second image features

Returns

MatchesInfo

Found matches

Apply(IEnumerable<ImageFeatures>, Mat?)

Performs images matching.

public virtual MatchesInfo[] Apply(IEnumerable<ImageFeatures> features, Mat? mask = null)

Parameters

features IEnumerable<ImageFeatures>

Features of the source images

mask Mat

Mask indicating which image pairs must be matched

Returns

MatchesInfo[]

Found pairwise matches

CollectGarbage()

Frees unused memory allocated before if there is any.

public virtual void CollectGarbage()

IsThreadSafe()

True, if it's possible to use the same matcher instance in parallel, false otherwise

public virtual bool IsThreadSafe()

Returns

bool