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.3.0.1416 (2.3.0.1416)

Syntax

C#
public static Image<Bgr, byte> DrawMatches(
	Image<Gray, byte> modelImage,
	VectorOfKeyPoint modelKeypoints,
	Image<Gray, byte> observerdImage,
	VectorOfKeyPoint observedKeyPoints,
	Matrix<int> matchIndices,
	Bgr matchColor,
	Bgr singlePointColor,
	Matrix<byte> matchesMask,
	Features2DTracker..::..KeypointDrawType flags
)
Visual Basic
Public Shared Function DrawMatches ( _
	modelImage As Image(Of Gray, Byte), _
	modelKeypoints As VectorOfKeyPoint, _
	observerdImage As Image(Of Gray, Byte), _
	observedKeyPoints As VectorOfKeyPoint, _
	matchIndices As Matrix(Of Integer), _
	matchColor As Bgr, _
	singlePointColor As Bgr, _
	matchesMask As Matrix(Of Byte), _
	flags As Features2DTracker..::..KeypointDrawType _
) As Image(Of Bgr, Byte)
Visual C++
public:
static Image<Bgr, unsigned char>^ DrawMatches(
	Image<Gray, unsigned char>^ modelImage, 
	VectorOfKeyPoint^ modelKeypoints, 
	Image<Gray, unsigned char>^ observerdImage, 
	VectorOfKeyPoint^ observedKeyPoints, 
	Matrix<int>^ matchIndices, 
	Bgr matchColor, 
	Bgr singlePointColor, 
	Matrix<unsigned char>^ matchesMask, 
	Features2DTracker..::..KeypointDrawType flags
)

Parameters

modelImage
Type: Emgu.CV..::..Image<(Of <(<'Gray, Byte>)>)>
The model image
modelKeypoints
Type: Emgu.CV.Util..::..VectorOfKeyPoint
The keypoints in the model image
observerdImage
Type: Emgu.CV..::..Image<(Of <(<'Gray, 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..::..Features2DTracker..::..KeypointDrawType
The drawing type

Return Value

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

See Also