#include <iso_tracker_position_tracker.h>
Collaboration diagram for iso::tracker::PositionTracker:
Public Member Functions | |
| PositionTracker (const math::Vector2< unsigned int > &pFrameSize) | |
| create position tracker | |
| ~PositionTracker () | |
| destructor | |
| ContourTracker & | contourTracker () |
| 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 |
| PositionTracker::PositionTracker | ( | const math::Vector2< unsigned int > & | pFrameSize | ) |
create position tracker
| pFrameSize | tracker frame size |
| PositionTracker::~PositionTracker | ( | ) |
destructor
| ContourTracker & PositionTracker::contourTracker | ( | ) |
return 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]
| void PositionTracker::update | ( | IplImage * | pImage, | |
| QVector< TrackObject * > & | pTrackObjects | |||
| ) | throw (TrackerException) |
update position tracker
| pImage | image | |
| pTrackObjects | vector of track objects |
| 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
| pTrackObjects | vector of track objects |
| bool PositionTracker::updateTrackObject | ( | TrackObject * | pTrackObjects, | |
| CvSeq * | pContour2D | |||
| ) | [protected] |
update track object
| pTrackObjects | track objects | |
| pContour2D | track object contour |
| void PositionTracker::createBitmap | ( | IplImage * | pTrackObjectImage, | |
| IplImage * | pTrackObjectBitmap | |||
| ) | [protected] |
create bitmap image
| pTrackObjectImage | track object image | |
| pTrackObjectBitmap | track object bitmap |
| float PositionTracker::scoreValue | ( | float | pValue, | |
| float | pMinValue, | |||
| float | pMaxValue, | |||
| float | pTargetValue | |||
| ) | [protected] |
math::Vector2<unsigned int> iso::tracker::PositionTracker::mFrameSize [protected] |
tracking frame size
IplImage* iso::tracker::PositionTracker::mImage [protected] |
tracker image
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] |
1.5.1