Cv2DrawMatches Method (Mat, IEnumerableKeyPoint, Mat, IEnumerableKeyPoint, IEnumerableIEnumerableDMatch, Mat, NullableScalar, NullableScalar, IEnumerableIEnumerableByte, DrawMatchesFlags) OpenCvSharp Class Library
Draws matches of keypints from two images on output image.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
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: OpenCvSharp.CPlusPlusMat

[Missing <param name="img1"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.DrawMatches(OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.DMatch}},OpenCvSharp.CPlusPlus.Mat,System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Byte}},OpenCvSharp.CPlusPlus.DrawMatchesFlags)"]

keypoints1
Type: System.Collections.GenericIEnumerableKeyPoint

[Missing <param name="keypoints1"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.DrawMatches(OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.DMatch}},OpenCvSharp.CPlusPlus.Mat,System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Byte}},OpenCvSharp.CPlusPlus.DrawMatchesFlags)"]

img2
Type: OpenCvSharp.CPlusPlusMat

[Missing <param name="img2"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.DrawMatches(OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.DMatch}},OpenCvSharp.CPlusPlus.Mat,System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Byte}},OpenCvSharp.CPlusPlus.DrawMatchesFlags)"]

keypoints2
Type: System.Collections.GenericIEnumerableKeyPoint

[Missing <param name="keypoints2"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.DrawMatches(OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.DMatch}},OpenCvSharp.CPlusPlus.Mat,System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Byte}},OpenCvSharp.CPlusPlus.DrawMatchesFlags)"]

matches1To2
Type: System.Collections.GenericIEnumerableIEnumerableDMatch

[Missing <param name="matches1To2"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.DrawMatches(OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.DMatch}},OpenCvSharp.CPlusPlus.Mat,System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Byte}},OpenCvSharp.CPlusPlus.DrawMatchesFlags)"]

outImg
Type: OpenCvSharp.CPlusPlusMat

[Missing <param name="outImg"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.DrawMatches(OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.DMatch}},OpenCvSharp.CPlusPlus.Mat,System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Byte}},OpenCvSharp.CPlusPlus.DrawMatchesFlags)"]

matchColor (Optional)
Type: SystemNullableScalar

[Missing <param name="matchColor"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.DrawMatches(OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.DMatch}},OpenCvSharp.CPlusPlus.Mat,System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Byte}},OpenCvSharp.CPlusPlus.DrawMatchesFlags)"]

singlePointColor (Optional)
Type: SystemNullableScalar

[Missing <param name="singlePointColor"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.DrawMatches(OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.DMatch}},OpenCvSharp.CPlusPlus.Mat,System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Byte}},OpenCvSharp.CPlusPlus.DrawMatchesFlags)"]

matchesMask (Optional)
Type: System.Collections.GenericIEnumerableIEnumerableByte

[Missing <param name="matchesMask"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.DrawMatches(OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.DMatch}},OpenCvSharp.CPlusPlus.Mat,System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Byte}},OpenCvSharp.CPlusPlus.DrawMatchesFlags)"]

flags (Optional)
Type: OpenCvSharp.CPlusPlusDrawMatchesFlags

[Missing <param name="flags"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.DrawMatches(OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},OpenCvSharp.CPlusPlus.Mat,System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.KeyPoint},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.DMatch}},OpenCvSharp.CPlusPlus.Mat,System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Nullable{OpenCvSharp.CPlusPlus.Scalar},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{System.Byte}},OpenCvSharp.CPlusPlus.DrawMatchesFlags)"]

See Also

Reference