Recognition::Grid Class Reference

#include <Grid.h>

Public Member Functions

Point extendTop (int i, int &t)
Point extendBottom (int i, int &t)
Point extendLeft (int i, int &t)
Point extendRight (int i, int &t)
void switchXandY ()
 Transpose the grid for proper matching.
 Grid (Point &)
void addTrow (PointList &)
 add the appropriate column or row ( no real error checking so make sure you choose the right one)
void addBrow (PointList &)
void addLcol (PointList &)
void addRcol (PointList &)
int getRSize ()
int getCSize ()
Step getStep (char side, int index)
void toList (PointList &)
 put the grid into list form with the correct grid coordinates
void print ()
 diagnostic

Data Fields

deque< gNode * > top
 the top edge for fast access
deque< gNode * > bot
 the bottom edge for fast access
deque< gNode * > left
 the left edge for fast access
deque< gNode * > righ
 the right edge for fast access

Detailed Description

class used to grow a grid by adding columns and rows and allow fast acces to the outside edges used in Points::fitGrid


Member Function Documentation

Point Recognition::Grid::extendBottom ( int  i,
int &  t 
) [inline]

returns a point predicted by two previous points

Parameters:
i index of point to be extended
t returns the threshold for point search
Point Recognition::Grid::extendLeft ( int  i,
int &  t 
) [inline]

returns a point predicted by two previous points

Parameters:
i index of point to be extended
t returns the threshold for point search
Point Recognition::Grid::extendRight ( int  i,
int &  t 
) [inline]

returns a point predicted by two previous points

Parameters:
i index of point to be extended
t returns the threshold for point search
Point Recognition::Grid::extendTop ( int  i,
int &  t 
) [inline]

returns a point predicted by two previous points

Parameters:
i index of point to be extended
t returns the threshold for point search
Step Recognition::Grid::getStep ( char  side,
int  index 
) [inline]

returns the estimated offset from an established edge point to the next possible point

Parameters:
side should be 't','b','l', or 'r' assumes that the grid has a depth of at least 2 points from the edge specified --depreciated

The documentation for this class was generated from the following files:
 All Data Structures Namespaces Functions Variables Typedefs

Generated on 22 Sep 2009 for Cali Cam by  doxygen 1.6.1