#include <LandmarksPercept.h>
Inheritance diagram for ConditionalBoundary:
Public Member Functions | |
ConditionalBoundary () | |
void | addX (const double px, bool isOnBorder) |
void | addY (const double py, bool isOnBorder) |
void | add (const ConditionalBoundary &b) |
bool | isOnBorder (const double &border) const |
Private Attributes | |
Boundary< double > | freeBorders |
Definition at line 32 of file LandmarksPercept.h.
ConditionalBoundary::ConditionalBoundary | ( | ) | [inline] |
Constructor. The boundary is empty.
Definition at line 42 of file LandmarksPercept.h.
void ConditionalBoundary::add | ( | const ConditionalBoundary & | b | ) | [inline] |
The function adds another boundary to this one.
b | The other boundary. |
Definition at line 75 of file LandmarksPercept.h.
References Boundary< T >::add(), b, and freeBorders.
Referenced by GoalRecognizer::scanLinesForGoals(), and GT2004GoalRecognizer::scanLinesForGoals().
void ConditionalBoundary::addX | ( | const double | px, | |
bool | isOnBorder | |||
) | [inline] |
The function adds a point to the boundary.
px | The x-coordinate of a new x-boundary-candidate. | |
isOnBorder | Is the point on the image border? |
Definition at line 51 of file LandmarksPercept.h.
References Range< T >::add(), freeBorders, Boundary< T >::x, and Boundary< double >::x.
Referenced by RasterImageProcessor::addFlag(), BoxSpecialist::fusionGoal(), GT2004FlagSpecialist::getFlagPercept(), GoalRecognizer::scanLinesForGoals(), GT2004GoalRecognizer::scanLinesForGoals(), and BoxSpecialist::searchGoal().
void ConditionalBoundary::addY | ( | const double | py, | |
bool | isOnBorder | |||
) | [inline] |
The function adds a point to the boundary.
py | The y-coordinate of a new y-boundary-candidate. | |
isOnBorder | Is the point on the image border? |
Definition at line 64 of file LandmarksPercept.h.
References Range< T >::add(), freeBorders, Boundary< T >::y, and Boundary< double >::y.
Referenced by RasterImageProcessor::addFlag(), BoxSpecialist::fusionGoal(), GT2004FlagSpecialist::getFlagPercept(), GoalRecognizer::scanLinesForGoals(), GT2004GoalRecognizer::scanLinesForGoals(), and BoxSpecialist::searchGoal().
bool ConditionalBoundary::isOnBorder | ( | const double & | border | ) | const [inline] |
The function determines whether a certain edge lies on the image border.
border | This parameter specifies the edge to test. The parameter must be one of the following four members of this object: x.min, x.max, y.min, y.max. A typical call would be: b.isOnBorder(b.min.x) |
Definition at line 89 of file LandmarksPercept.h.
References freeBorders, Range< T >::max, Range< T >::min, Boundary< T >::x, Boundary< double >::x, Boundary< T >::y, and Boundary< double >::y.
Referenced by GT2004SelfLocator::addFlag(), GT2004SelfLocator::addGoal(), LandmarksPercept::estimateOffsetForGoals(), GT2004SelfLocator::getBearing(), GoalRecognizer::scanLinesForGoals(), and GT2004GoalRecognizer::scanLinesForGoals().
Boundary<double> ConditionalBoundary::freeBorders [private] |
Contains the edges that do not touch the image border.
Definition at line 35 of file LandmarksPercept.h.
Referenced by add(), addX(), addY(), and isOnBorder().