classPiiRigidPlaneMatcher
#include <PiiRigidPlaneMatcher.h>
An operation that matches a set of feature points to a database assuming that only in-plane affine transforms are possible.
Inherits PiiRansacPointMatcher
Description
See also
Properties
|
double
|
The maximum allowed angle change in merging overlapping detections. |
|
double
|
Same as angleTolerance, but in degrees. |
|
bool
|
|
|
double
|
|
|
double
|
Same as #maxRotationAngle, but in degrees. |
|
double
|
|
|
double
|
|
|
double
|
The maximum allowed relative scale change in merging overlapping detections. |
|
double
|
The maximum allowed position change in merging overlapping detections. |
Constructors and destructor
Public member functions
|
double
|
( )
|
|
double
|
|
|
bool
|
( )
|
|
double
|
( )
|
|
double
|
|
|
double
|
( )
|
|
double
|
( )
|
|
double
|
( )
|
|
void
|
(
|
|
void
|
(
|
|
void
|
(
|
|
void
|
(
|
|
void
|
(
|
|
void
|
(
|
|
void
|
(
|
|
void
|
(
|
|
void
|
(
|
|
double
|
Protected member functions
|
virtual PiiMatching::MatchList
|
Matches the given points to the database stored in matcher using features as the feature descriptors. |
|
virtual void
|
This function merges two matches if the differences in their parameters are in tolerances (scaleTolerance, angleTolerance, translationTolerance). |
|
virtual PiiMatrix<
double >
|
Converts the parameters of the transformation model into a square transformation matrix for homogeneous coordinates. |
Property details
-
double angleTolerance
[read, write]The maximum allowed angle change in merging overlapping detections.
Setting
angleToleranceto a non-zero value makes it possible to merge detected models even if their angles are slightly different. The default is pi/36, which allows a rotation of at most 5 degrees. -
double angleToleranceDeg
[read, write]Same as angleTolerance, but in degrees.
-
bool autoRefine
[read, write] -
double maxRotationAngle
[read, write] -
double maxRotationAngleDeg
[read, write]Same as #maxRotationAngle, but in degrees.
-
double maxScale
[read, write] -
double minScale
[read, write] -
PII_DECLARE_VIRTUAL_METAOBJECT_FUNCTION
-
double scaleTolerance
[read, write]The maximum allowed relative scale change in merging overlapping detections.
Setting
scaleToleranceto a non-zero value makes it possible to merge detected models even if their sizes are slightly different. The default value is 0.1, which allows a 10% scale change. -
double translationTolerance
[read, write]The maximum allowed position change in merging overlapping detections.
Setting
translationToleranceto a non-zero value makes it possible to merge detected models even if their locations are slightly different. The default is 10, which allows a translation of at most 10 pixels.
Function details
-
PiiRigidPlaneMatcher
() -
double angleTolerance
() -
double angleToleranceDeg
() -
bool autoRefine
() -
double maxRotationAngle
() -
double maxRotationAngleDeg
() -
double maxScale
() -
double minScale
() -
double scaleTolerance
() -
void setAngleTolerance
(- double angleTolerance
-
void setAngleToleranceDeg
(- double angleToleranceDeg
-
void setAutoRefine
(- bool autoRefine
-
void setMaxRotationAngle
(- double maxRotationAngle
-
void setMaxRotationAngleDeg
(- double maxRotationAngle
-
void setMaxScale
(- double maxScale
-
void setMinScale
(- double minScale
-
void setScaleTolerance
(- double scaleTolerance
-
void setTranslationTolerance
(- double translationTolerance
-
double translationTolerance
() -
virtual PiiMatching::MatchList match
[protected, virtual]Matches the given points to the database stored in matcher using features as the feature descriptors.
Subclasses override this function to implement the actual matching strategy.
Returns
a (possibly empty) list of matching models
Reimplemented from PiiPointMatchingOperation.
-
This function merges two matches if the differences in their parameters are in tolerances (scaleTolerance, angleTolerance, translationTolerance).
"Merging" is done by simply selecting the match with more matched points.
Reimplemented from PiiPointMatchingOperation.
-
virtual PiiMatrix< double > toTransformMatrix
[protected, virtual]Converts the parameters of the transformation model into a square transformation matrix for homogeneous coordinates.
Subclasses override this function to convert the model parameters returned by PiiFeaturePointMatcher to a transformation matrix.
Reimplemented from PiiPointMatchingOperation.
Add a note
Not a single note added yet. Be the first, add yours.