Public Member Functions | |
VisualTracker (OptionManager &mgr, const std::string &descrName="VisualTracker", const std::string &tagName="VisualTracker") | |
void | start2 () |
This is called from within start() after the subcomponents have started. | |
void | initTracker (Dims imageDims) |
initalize the tracker | |
void | setTargets (const Image< byte > &grey, const Point2D< int > loc) |
Set the target point to track. | |
void | setTargets (const Image< byte > &grey, const Image< byte > &target) |
Set the target as a region to track. | |
Point2D< int > | trackObjects (const Image< byte > &grey) |
Get the location of track points. | |
Point2D< int > | trackTemplObject (const Image< byte > &grey, double &err) |
Get the location of track objects. | |
Protected Member Functions | |
SIMCALLBACK_DECLARE (VisualTracker, SimEventInputFrame) | |
Callback for when a new input frame is available. | |
SIMCALLBACK_DECLARE (VisualTracker, SimEventSetVisualTracker) |
Definition at line 53 of file VisualTracker.H.
void VisualTracker::initTracker | ( | Dims | imageDims | ) |
initalize the tracker
Definition at line 150 of file VisualTracker.C.
References ZEROS.
Referenced by setTargets().
Set the target as a region to track.
Definition at line 261 of file VisualTracker.C.
References Image< T >::getDims(), img2ipl(), and initTracker().
Set the target point to track.
Definition at line 215 of file VisualTracker.C.
References Image< T >::getDims(), Point2D< T >::i, img2ipl(), initTracker(), and Point2D< T >::isValid().
VisualTracker::SIMCALLBACK_DECLARE | ( | VisualTracker | , | |
SimEventInputFrame | ||||
) | [protected] |
Callback for when a new input frame is available.
void VisualTracker::start2 | ( | ) | [virtual] |
This is called from within start() after the subcomponents have started.
Reimplemented from ModelComponent.
Definition at line 146 of file VisualTracker.C.
Get the location of track points.
Definition at line 351 of file VisualTracker.C.
References ASSERT, Image< T >::coordsOk(), Image< T >::getHeight(), OModelParam< T >::getVal(), Image< T >::getWidth(), Point2D< T >::i, img2ipl(), max(), and min().
Get the location of track objects.
Definition at line 282 of file VisualTracker.C.
References Image< T >::getHeight(), Image< T >::getWidth(), Point2D< T >::i, img2ipl(), and Image< T >::initialized().