Image Component Library (ICL)
|
Utility class vor viewbased template tracking. More...
#include <TemplateTracker.h>
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 |
Utility class vor viewbased template tracking.
TODO: add more 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.
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
void icl::cv::TemplateTracker::showRotationLUT | ( | ) | const |
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
Data* icl::cv::TemplateTracker::data [private] |
internal data storage
internal data pointer