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.World (in Emgu.CV.World.dll) Version: 4.1.0.3408 (4.1.0.3408)
Syntaxpublic static int VoteForSizeAndOrientation(
VectorOfKeyPoint modelKeyPoints,
VectorOfKeyPoint observedKeyPoints,
VectorOfVectorOfDMatch matches,
Mat mask,
double scaleIncrement,
int rotationBins
)
Public Shared Function VoteForSizeAndOrientation (
modelKeyPoints As VectorOfKeyPoint,
observedKeyPoints As VectorOfKeyPoint,
matches As VectorOfVectorOfDMatch,
mask As Mat,
scaleIncrement As Double,
rotationBins As Integer
) As Integer
public:
static int VoteForSizeAndOrientation(
VectorOfKeyPoint^ modelKeyPoints,
VectorOfKeyPoint^ observedKeyPoints,
VectorOfVectorOfDMatch^ matches,
Mat^ mask,
double scaleIncrement,
int rotationBins
)
static member VoteForSizeAndOrientation :
modelKeyPoints : VectorOfKeyPoint *
observedKeyPoints : VectorOfKeyPoint *
matches : VectorOfVectorOfDMatch *
mask : Mat *
scaleIncrement : float *
rotationBins : int -> int
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