Table of Contents

Method MatchGMS

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

MatchGMS(Size, Size, IEnumerable<KeyPoint>, IEnumerable<KeyPoint>, IEnumerable<DMatch>, bool, bool, double)

GMS (Grid-based Motion Statistics) feature matching strategy.

public static DMatch[] MatchGMS(Size size1, Size size2, IEnumerable<KeyPoint> keypoints1, IEnumerable<KeyPoint> keypoints2, IEnumerable<DMatch> matches1To2, bool withRotation = false, bool withScale = false, double thresholdFactor = 6)

Parameters

size1 Size

Input size of image1.

size2 Size

Input size of image2.

keypoints1 IEnumerable<KeyPoint>

Input keypoints of image1.

keypoints2 IEnumerable<KeyPoint>

Input keypoints of image2.

matches1To2 IEnumerable<DMatch>

Input 1-nearest neighbor matches.

withRotation bool

Take rotation transformation into account.

withScale bool

Take scale transformation into account.

thresholdFactor double

The higher, the less matches.

Returns

DMatch[]

Matches returned by the GMS matching strategy.