Click or drag to resize

Cv2DrawMatches Method (Mat, IEnumerableKeyPoint, Mat, IEnumerableKeyPoint, IEnumerableIEnumerableDMatch, Mat, NullableScalar, NullableScalar, IEnumerableIEnumerableByte, DrawMatchesFlags)

Draws matches of keypints from two images on output image.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static void DrawMatches(
	Mat img1,
	IEnumerable<KeyPoint> keypoints1,
	Mat img2,
	IEnumerable<KeyPoint> keypoints2,
	IEnumerable<IEnumerable<DMatch>> matches1To2,
	Mat outImg,
	Nullable<Scalar> matchColor = null,
	Nullable<Scalar> singlePointColor = null,
	IEnumerable<IEnumerable<byte>> matchesMask = null,
	DrawMatchesFlags flags = DrawMatchesFlags.Default
)

Parameters

img1
Type: OpenCvSharpMat
keypoints1
Type: System.Collections.GenericIEnumerableKeyPoint
img2
Type: OpenCvSharpMat
keypoints2
Type: System.Collections.GenericIEnumerableKeyPoint
matches1To2
Type: System.Collections.GenericIEnumerableIEnumerableDMatch
outImg
Type: OpenCvSharpMat
matchColor (Optional)
Type: SystemNullableScalar
singlePointColor (Optional)
Type: SystemNullableScalar
matchesMask (Optional)
Type: System.Collections.GenericIEnumerableIEnumerableByte
flags (Optional)
Type: OpenCvSharpDrawMatchesFlags
See Also