Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Member Functions | Private Attributes
icl::cv::TemplateTracker Class Reference

Utility class vor viewbased template tracking. More...

#include <TemplateTracker.h>

Inheritance diagram for icl::cv::TemplateTracker:
icl::utils::Configurable icl::utils::Uncopyable

List of all members.

Classes

struct  Result
 Result class that describes a tracking result. More...

Public Member Functions

 TemplateTracker (const core::Img8u *templateImage=0, float rotationStepSizeDegree=1.0, int positionTrackingRangePix=100, float rotationTrackingRangeDegree=45, int coarseSteps=10, int fineSteps=1, const Result &initialResult=Result())
 Constructor with given parameters.
 ~TemplateTracker ()
 Desctructor.
void showRotationLUT () const
 utility method that shows the template rotation lookup table
void setRotationLUT (const std::vector< utils::SmartPtr< core::Img8u > > &lut)
 sets a new set or rotated template images
void setTemplateImage (const core::Img8u &templateImage, float rotationStepSizeDegree=1.0)
 sets a new template image, that is internally rotated
Result track (const core::Img8u &image, const Result *initialResult=0, std::vector< Result > *allResults=0)
 actual track method

Private Attributes

Data * data
 internal data storage

Detailed Description

Utility class vor viewbased template tracking.

TODO: add more documentation!


Constructor & Destructor Documentation

icl::cv::TemplateTracker::TemplateTracker ( const core::Img8u templateImage = 0,
float  rotationStepSizeDegree = 1.0,
int  positionTrackingRangePix = 100,
float  rotationTrackingRangeDegree = 45,
int  coarseSteps = 10,
int  fineSteps = 1,
const Result initialResult = Result() 
)

Constructor with given parameters.

TODO: describe parameters and methology

Desctructor.


Member Function Documentation

void icl::cv::TemplateTracker::setRotationLUT ( const std::vector< utils::SmartPtr< core::Img8u > > &  lut)

sets a new set or rotated template images

void icl::cv::TemplateTracker::setTemplateImage ( const core::Img8u templateImage,
float  rotationStepSizeDegree = 1.0 
)

sets a new template image, that is internally rotated

internally 360/rotationStepSizeDegree images are sampled using image rotation. Please note that at some loations the image edges are cut. Therefore, the template should only be located within the inner center circle of the template's image rectangle

utility method that shows the template rotation lookup table

Result icl::cv::TemplateTracker::track ( const core::Img8u image,
const Result initialResult = 0,
std::vector< Result > *  allResults = 0 
)

actual track method


Member Data Documentation

internal data storage

internal data pointer


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines