iso::tracker::PositionTracker Class Reference

#include <iso_tracker_position_tracker.h>

Collaboration diagram for iso::tracker::PositionTracker:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PositionTracker (const math::Vector2< unsigned int > &pFrameSize)
 create position tracker
 ~PositionTracker ()
 destructor
ContourTrackercontourTracker ()
 return contour tracker
double contourSimplificationAmount () const
double contourDefectThreshold () const
void setContourSimplificationAmount (double pContourSimplificationAmount)
void setContourDefectThreshold (double pContourDefectThreshold)
IplImage * image ()
 return image [8U]
void update (IplImage *pImage, QVector< TrackObject * > &pTrackObjects) throw (TrackerException)
 update position tracker

Protected Member Functions

CvConvexityDefect * getConvexDefect (CvSeq *pConvexDefects, float pMinDepth, unsigned int pStartIndex, unsigned int &pResultIndex)
void createDefectContour (CvSeq *pContour, CvSeq *pDefectContour, CvConvexityDefect *pDefect1, CvConvexityDefect *pDefect2)
void updateTrackObjects (QVector< TrackObject * > &pTrackObjects)
 update track objects
bool updateTrackObject (TrackObject *pTrackObjects, CvSeq *pContour2D)
 update track object
void createBitmap (IplImage *pTrackObjectImage, IplImage *pTrackObjectBitmap)
 create bitmap image
float scoreValue (float pValue, float pMinValue, float pMaxValue, float pTargetValue)

Protected Attributes

math::Vector2< unsigned int > mFrameSize
 tracking frame size
IplImage * mImage
 tracker image
ContourTracker mContourTracker
 contour tracker
double mContourSimplificationAmount
double mContourDefectThreshold
CvMemStorage * mContourStorage
QTime mTime

Constructor & Destructor Documentation

PositionTracker::PositionTracker ( const math::Vector2< unsigned int > &  pFrameSize  ) 

create position tracker

Parameters:
pFrameSize tracker frame size

PositionTracker::~PositionTracker (  ) 

destructor


Member Function Documentation

ContourTracker & PositionTracker::contourTracker (  ) 

return contour tracker

Returns:
contour tracker

double PositionTracker::contourSimplificationAmount (  )  const

double PositionTracker::contourDefectThreshold (  )  const

void PositionTracker::setContourSimplificationAmount ( double  pContourSimplificationAmount  ) 

void PositionTracker::setContourDefectThreshold ( double  pContourDefectThreshold  ) 

IplImage * PositionTracker::image (  ) 

return image [8U]

Returns:
image [8U]

void PositionTracker::update ( IplImage *  pImage,
QVector< TrackObject * > &  pTrackObjects 
) throw (TrackerException)

update position tracker

Parameters:
pImage image
pTrackObjects vector of track objects
Exceptions:
TrackerException source image is not single channel or images are of wrong size

CvConvexityDefect * PositionTracker::getConvexDefect ( CvSeq *  pConvexDefects,
float  pMinDepth,
unsigned int  pStartIndex,
unsigned int &  pResultIndex 
) [protected]

void PositionTracker::createDefectContour ( CvSeq *  pContour,
CvSeq *  pDefectContour,
CvConvexityDefect *  pDefect1,
CvConvexityDefect *  pDefect2 
) [protected]

void PositionTracker::updateTrackObjects ( QVector< TrackObject * > &  pTrackObjects  )  [protected]

update track objects

Parameters:
pTrackObjects vector of track objects

bool PositionTracker::updateTrackObject ( TrackObject pTrackObjects,
CvSeq *  pContour2D 
) [protected]

update track object

Parameters:
pTrackObjects track objects
pContour2D track object contour
Returns:
true if track object is valid and has been updated, false otherwise

void PositionTracker::createBitmap ( IplImage *  pTrackObjectImage,
IplImage *  pTrackObjectBitmap 
) [protected]

create bitmap image

Parameters:
pTrackObjectImage track object image
pTrackObjectBitmap track object bitmap
creates a bitmap version of the track objct distance image

float PositionTracker::scoreValue ( float  pValue,
float  pMinValue,
float  pMaxValue,
float  pTargetValue 
) [protected]


Member Data Documentation

math::Vector2<unsigned int> iso::tracker::PositionTracker::mFrameSize [protected]

tracking frame size

IplImage* iso::tracker::PositionTracker::mImage [protected]

tracker image

ContourTracker iso::tracker::PositionTracker::mContourTracker [protected]

contour tracker

double iso::tracker::PositionTracker::mContourSimplificationAmount [protected]

double iso::tracker::PositionTracker::mContourDefectThreshold [protected]

CvMemStorage* iso::tracker::PositionTracker::mContourStorage [protected]

QTime iso::tracker::PositionTracker::mTime [protected]


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:20:29 2011 for iso_tracker by  doxygen 1.5.1