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
size1SizeInput size of image1.
size2SizeInput size of image2.
keypoints1IEnumerable<KeyPoint>Input keypoints of image1.
keypoints2IEnumerable<KeyPoint>Input keypoints of image2.
matches1To2IEnumerable<DMatch>Input 1-nearest neighbor matches.
withRotationboolTake rotation transformation into account.
withScaleboolTake scale transformation into account.
thresholdFactordoubleThe higher, the less matches.
Returns
- DMatch[]
Matches returned by the GMS matching strategy.