ConditionalBoundary Class Reference

#include <LandmarksPercept.h>

Inheritance diagram for ConditionalBoundary:

Boundary< double > Flag Goal List of all members.

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

Detailed Description

The class represents a rectangular landmark boundary. It also encodes, which edges of the boundary touch the image border.

Definition at line 32 of file LandmarksPercept.h.


Constructor & Destructor Documentation

ConditionalBoundary::ConditionalBoundary (  )  [inline]

Constructor. The boundary is empty.

Definition at line 42 of file LandmarksPercept.h.


Member Function Documentation

void ConditionalBoundary::add ( const ConditionalBoundary b  )  [inline]

The function adds another boundary to this one.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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)
Returns:
Does the specified edge touch the image border?

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().


Member Data Documentation

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().


The documentation for this class was generated from the following file:
Generated on Thu Dec 7 01:23:21 2006 for DT2005.panorama by  doxygen 1.4.7