#include <VisualTracking.h>
Public Member Functions | |
VisualTracking () | |
Default Cosntructor. | |
VisualTracking (int algoType, int udpPort=0) | |
Constructor for udp communication. | |
virtual void | getEstPose (Pose3D *pose)=0 |
Gets the estimated pose of Robot. | |
virtual void | setEstPose (Pose3D *pose)=0 |
Sets the estimated pose of Robot (if a more realiable one is available). | |
virtual bool | displayTrack (int addInfo)=0 |
Visualizes result of tracking. | |
virtual bool | getFeatureErr (IplImage *frame, MipBaselib::Time &newTime, ImageFeature &f)=0 |
Gets image feature error. | |
virtual void | setDisplay (int level)=0 |
Sets the level of visualization. | |
VisualTrackVar * | getVar () |
Gets variables class pointer. | |
Protected Attributes | |
VisualTrackPar * | _par |
VisualTrackVar * | _var |
MipAlgorithms::VisualTracking::VisualTracking | ( | ) |
Default Cosntructor.
MipAlgorithms::VisualTracking::VisualTracking | ( | int | algoType, | |
int | udpPort = 0 | |||
) |
Constructor for udp communication.
algoTipe | Type of algorithm: 0 = Camshift, 1 = RemoteUDP. | |
udpPort | Port for UDP communication. |
virtual void MipAlgorithms::VisualTracking::getEstPose | ( | Pose3D * | pose | ) | [pure virtual] |
Gets the estimated pose of Robot.
pose | Pointer to Pose3D object. |
Implemented in MipAlgorithms::VisTrackCamshift, and MipAlgorithms::VisTrackVisp.
virtual void MipAlgorithms::VisualTracking::setEstPose | ( | Pose3D * | pose | ) | [pure virtual] |
Sets the estimated pose of Robot (if a more realiable one is available).
pose | Pointer to Pose3D object. |
Implemented in MipAlgorithms::VisTrackCamshift, and MipAlgorithms::VisTrackVisp.
virtual bool MipAlgorithms::VisualTracking::displayTrack | ( | int | addInfo | ) | [pure virtual] |
Visualizes result of tracking.
addInfo | select the level of added information (displayed on the frame) |
Implemented in MipAlgorithms::VisTrackCamshift, and MipAlgorithms::VisTrackVisp.
virtual bool MipAlgorithms::VisualTracking::getFeatureErr | ( | IplImage * | frame, | |
MipBaselib::Time & | newTime, | |||
ImageFeature & | f | |||
) | [pure virtual] |
Gets image feature error.
frame | Frame to be analyzed. | |
newTime | Timestamp of the frame. | |
f | Feature object. It will be set with actual error. |
Implemented in MipAlgorithms::VisTrackCamshift, and MipAlgorithms::VisTrackVisp.
virtual void MipAlgorithms::VisualTracking::setDisplay | ( | int | level | ) | [pure virtual] |
Sets the level of visualization.
level | 0: do not visualize anything, 1 visualizes Selection in mainFrame, 2 visualize all elaborations TODO: Create function to open and close mainframe for selection only |
Implemented in MipAlgorithms::VisTrackCamshift, and MipAlgorithms::VisTrackVisp.
VisualTrackVar* MipAlgorithms::VisualTracking::getVar | ( | ) | [inline] |
Gets variables class pointer.
Reimplemented in MipAlgorithms::VisTrackCamshift, and MipAlgorithms::VisTrackVisp.
VisualTrackPar* MipAlgorithms::VisualTracking::_par [protected] |
VisualTrackVar* MipAlgorithms::VisualTracking::_var [protected] |