Click or drag to resize

Cv2.DrawMatches Method (Mat, IEnumerable<KeyPoint> , Mat, IEnumerable<KeyPoint> , IEnumerable<DMatch> , Mat, Nullable<Scalar> , Nullable<Scalar> , IEnumerable<Byte> , DrawMatchesFlags)

Draws matches of keypoints 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<DMatch> matches1To2,
	Mat outImg,
	Nullable<Scalar> matchColor = null,
	Nullable<Scalar> singlePointColor = null,
	IEnumerable<byte> matchesMask = null,
	DrawMatchesFlags flags = DrawMatchesFlags.Default
)

Parameters

img1
Type: OpenCvSharp.Mat
keypoints1
Type: System.Collections.Generic.IEnumerable<KeyPoint>
img2
Type: OpenCvSharp.Mat
keypoints2
Type: System.Collections.Generic.IEnumerable<KeyPoint>
matches1To2
Type: System.Collections.Generic.IEnumerable<DMatch>
outImg
Type: OpenCvSharp.Mat
matchColor (Optional)
Type: System.Nullable<Scalar>
singlePointColor (Optional)
Type: System.Nullable<Scalar>
matchesMask (Optional)
Type: System.Collections.Generic.IEnumerable<Byte>
flags (Optional)
Type: OpenCvSharp.DrawMatchesFlags
See Also