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: (


public static int VoteForSizeAndOrientation(
	VectorOfKeyPoint modelKeyPoints,
	VectorOfKeyPoint observedKeyPoints,
	Matrix<int> indices,
	Matrix<byte> mask,
	double scaleIncrement,
	int rotationBins
Visual Basic
Public Shared Function VoteForSizeAndOrientation ( 
	modelKeyPoints As VectorOfKeyPoint,
	observedKeyPoints As VectorOfKeyPoint,
	indices As Matrix(Of Integer),
	mask As Matrix(Of Byte),
	scaleIncrement As Double,
	rotationBins As Integer
) As Integer
Visual C++
static int VoteForSizeAndOrientation(
	VectorOfKeyPoint^ modelKeyPoints, 
	VectorOfKeyPoint^ observedKeyPoints, 
	Matrix<int>^ indices, 
	Matrix<unsigned char>^ mask, 
	double scaleIncrement, 
	int rotationBins
static member VoteForSizeAndOrientation : 
        modelKeyPoints : VectorOfKeyPoint * 
        observedKeyPoints : VectorOfKeyPoint * 
        indices : Matrix<int> * 
        mask : Matrix<byte> * 
        scaleIncrement : float * 
        rotationBins : int -> int 


Type: Emgu.CV.Util..::..VectorOfKeyPoint
The keypoints from the model image
Type: Emgu.CV.Util..::..VectorOfKeyPoint
The keypoints from the observed image
Type: Emgu.CV..::..Matrix<(Of <(<'Int32>)>)>
The match indices matrix. indices[i, k] = j, indicates the j-th model descriptor is the k-th closest match to the i-th observed descriptor
Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>
This is both input and output. This matrix indicates which row is valid for the matches.
Type: System..::..Double
This determins the different in scale for neighbour 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
Type: System..::..Int32
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