Into

Modules

Documentation

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
(
  • double angleTolerance
)
void
(
  • double angleToleranceDeg
)
void
(
  • bool autoRefine
)
void
(
  • double maxRotationAngle
)
void
(
  • double maxRotationAngle
)
void
(
  • double maxScale
)
void
(
  • double minScale
)
void
(
  • double scaleTolerance
)
void
(
  • double translationTolerance
)
double

Protected member functions

( )

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 >
(
  • const PiiMatrix< double > & transformParams
)

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 angleTolerance to 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 scaleTolerance to 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 translationTolerance to 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.

  • virtual void removeDuplicates

    ( )
    [protected, virtual]

    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

    (
    • const PiiMatrix< double > & transformParams
    )
    [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.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.