Click or drag to resize
Features2DToolboxVoteForSizeAndOrientation Method
http://www.emgu.com
Eliminate the matched features whose scale and rotation do not aggree with the majority's scale and rotation.

Namespace: Emgu.CV.Features2D
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntax
public static int VoteForSizeAndOrientation(
	VectorOfKeyPoint modelKeyPoints,
	VectorOfKeyPoint observedKeyPoints,
	VectorOfVectorOfDMatch matches,
	Mat mask,
	double scaleIncrement,
	int rotationBins
)

Parameters

modelKeyPoints
Type: Emgu.CV.UtilVectorOfKeyPoint
The keypoints from the model image
observedKeyPoints
Type: Emgu.CV.UtilVectorOfKeyPoint
The keypoints from the observed image
matches
Type: Emgu.CV.UtilVectorOfVectorOfDMatch
Matches. Each matches[i] is k or less matches for the same query descriptor.
mask
Type: Emgu.CVMat
This is both input and output. This matrix indicates which row is valid for the matches.
scaleIncrement
Type: SystemDouble
This determines the different in scale for neighbor hood bins, a good value might be 1.5 (which means matched features in bin i+1 is scaled 1.5 times larger than matched features in bin i
rotationBins
Type: SystemInt32
The numbers of bins for rotation, a good value might be 20 (which means each bin covers 18 degree)

Return Value

Type: Int32
The number of non-zero elements in the resulting mask
See Also