Object2D
Description
This is output structure for template matching related functions. It groups matched object with its properties.Structure fields and default values (if defined) are described below:
- Rectangle2D Match
- CoordinateSystem2D Alignment
- Point2D Point
- Real Angle
- Real Scale
- Real Score
struct Object2D
{
Rectangle2D Match;
CoordinateSystem2D Alignment;
Point2D Point;
Real Angle;
Real Scale;
Real Score;
Rectangle2D Match() const { return Match; };
CoordinateSystem2D Alignment() const { return Alignment; };
Point2D Point() const { return Point; };
Real Angle() const { return Angle; };
Real Scale() const { return Scale; };
Real Score() const { return Score; };
bool operator == ( const avl::Object2D& rhs ) const
{
return Match == rhs.Match &&
Alignment == rhs.Alignment &&
Point == rhs.Point &&
Angle == rhs.Angle &&
Scale == rhs.Scale &&
Score == rhs.Score;
}
bool operator != ( const avl::Object2D& rhs ) const
{
return !(operator==(rhs));
}
};
