Class AffineBestOf2NearestMatcher
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).
Inheritance
Implements
Inherited Members
Namespace: OpenCvSharp.Detail
Assembly: OpenCvSharp.dll
Syntax
public class AffineBestOf2NearestMatcher : BestOf2NearestMatcher, ICvPtrHolder
Constructors
| Improve this Doc View SourceAffineBestOf2NearestMatcher(Boolean, Boolean, Single, Int32)
Constructs a "best of 2 nearest" matcher that expects affine transformation between images
Declaration
public AffineBestOf2NearestMatcher(bool fullAffine = false, bool tryUseGpu = false, float matchConf = 0.3F, int numMatchesThresh1 = 6)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | fullAffine | 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 |
System.Boolean | tryUseGpu | Should try to use GPU or not |
System.Single | matchConf | Match distances ration threshold |
System.Int32 | numMatchesThresh1 | Minimum number of matches required for the 2D affine transform estimation used in the inliers classification step |
Methods
| Improve this Doc View SourceDisposeUnmanaged()
releases unmanaged resources
Declaration
protected override void DisposeUnmanaged()