Table of Contents

Class AffineBestOf2NearestMatcher

Namespace
OpenCvSharp.Detail
Assembly
OpenCvSharp.dll

Features matcher similar to cv::detail::BestOf2NearestMatcher which finds two best matches for each feature and leaves the best one only if the ratio between descriptor distances is greater than the threshold match_conf.

Unlike cv::detail::BestOf2NearestMatcher this matcher uses affine transformation (affine transformation estimate will be placed in matches_info).

public class AffineBestOf2NearestMatcher : BestOf2NearestMatcher, IDisposable, ICvPtrHolder
Inheritance
AffineBestOf2NearestMatcher
Implements
Inherited Members

Constructors

AffineBestOf2NearestMatcher(bool, bool, float, int)

Constructs a "best of 2 nearest" matcher that expects affine transformation between images

public AffineBestOf2NearestMatcher(bool fullAffine = false, bool tryUseGpu = false, float matchConf = 0.3, int numMatchesThresh1 = 6)

Parameters

fullAffine bool

whether to use full affine transformation with 6 degress of freedom or reduced transformation with 4 degrees of freedom using only rotation, translation and uniform scaling

tryUseGpu bool

Should try to use GPU or not

matchConf float

Match distances ration threshold

numMatchesThresh1 int

Minimum number of matches required for the 2D affine transform estimation used in the inliers classification step

Methods

DisposeUnmanaged()

releases unmanaged resources

protected override void DisposeUnmanaged()