http://www.emgu.com
Draw the matched keypoints between the model image and the observered image.

Namespace: Emgu.CV.Features2D
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.0.1717 (2.4.0.1717)

Syntax

C#
public static Image<Bgr, byte> DrawMatches<TColor>(
	Image<TColor, byte> modelImage,
	VectorOfKeyPoint modelKeypoints,
	Image<TColor, byte> observerdImage,
	VectorOfKeyPoint observedKeyPoints,
	Matrix<int> matchIndices,
	Bgr matchColor,
	Bgr singlePointColor,
	Matrix<byte> matchesMask,
	Features2DToolbox..::..KeypointDrawType flags
)
where TColor : struct, new(), IColor
Visual Basic
Public Shared Function DrawMatches(Of TColor As {Structure, New, IColor}) ( _
	modelImage As Image(Of TColor, Byte), _
	modelKeypoints As VectorOfKeyPoint, _
	observerdImage As Image(Of TColor, Byte), _
	observedKeyPoints As VectorOfKeyPoint, _
	matchIndices As Matrix(Of Integer), _
	matchColor As Bgr, _
	singlePointColor As Bgr, _
	matchesMask As Matrix(Of Byte), _
	flags As Features2DToolbox..::..KeypointDrawType _
) As Image(Of Bgr, Byte)
Visual C++
public:
generic<typename TColor>
where TColor : value class, gcnew(), IColor
static Image<Bgr, unsigned char>^ DrawMatches(
	Image<TColor, unsigned char>^ modelImage, 
	VectorOfKeyPoint^ modelKeypoints, 
	Image<TColor, unsigned char>^ observerdImage, 
	VectorOfKeyPoint^ observedKeyPoints, 
	Matrix<int>^ matchIndices, 
	Bgr matchColor, 
	Bgr singlePointColor, 
	Matrix<unsigned char>^ matchesMask, 
	Features2DToolbox..::..KeypointDrawType flags
)

Parameters

modelImage
Type: Emgu.CV..::..Image<(Of <(<'TColor, Byte>)>)>
The model image
modelKeypoints
Type: Emgu.CV.Util..::..VectorOfKeyPoint
The keypoints in the model image
observerdImage
Type: Emgu.CV..::..Image<(Of <(<'TColor, Byte>)>)>
The observed image
observedKeyPoints
Type: Emgu.CV.Util..::..VectorOfKeyPoint
The keypoints in the observed image
matchIndices
Type: Emgu.CV..::..Matrix<(Of <(<'Int32>)>)>
The match indices
matchColor
Type: Emgu.CV.Structure..::..Bgr
The color for the match correspondence lines
singlePointColor
Type: Emgu.CV.Structure..::..Bgr
The color for highlighting the keypoints
matchesMask
Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>
The mask for the matches. Use null for all matches.
flags
Type: Emgu.CV.Features2D..::..Features2DToolbox..::..KeypointDrawType
The drawing type

Type Parameters

TColor
The type of color for the source images. Should be either Gray or Bgr

Return Value

The image where model and observed image is displayed side by side. Matches are drawn as indicated by the flag

See Also