|
const Vector3 & | maximalPositionOffset () const |
| Returns the maximal expected pose position offset between two successive frames for this tracker. More...
|
|
Scalar | maximalOrientationOffset () const |
| Returns the maximal expected pose orientation offset between two successive frames for this tracker. More...
|
|
virtual bool | setMaxPositionOffset (const Vector3 &positionOffset) |
| Sets or changes the maximal expected pose position offset between two successive frames for this tracker. More...
|
|
virtual bool | setMaxOrientationOffset (const Scalar orientationOffset) |
| Sets or changes the maximal expected pose orientation offset between two successive frames for this tracker. More...
|
|
virtual bool | determinePoses (const Frames &frames, const SharedAnyCameras &anyCameras, TransformationSamples &transformations, const Quaternion &world_R_camera=Quaternion(false), Worker *worker=nullptr) |
| Executes the tracking step for a collection of frames and corresponding cameras This function allows to specify an absolute orientation 'absoluteOrientation' provided by e.g., an IMU sensor. More...
|
|
virtual bool | determinePoses (const Frame &frame, const PinholeCamera &pinholeCamera, const bool frameIsUndistorted, TransformationSamples &transformations, const Quaternion &world_R_camera=Quaternion(false), Worker *worker=nullptr)=0 |
| Deprecated. More...
|
|
| Tracker () |
| Creates a new tracker object. More...
|
|
virtual | ~Tracker () |
| Destructs a new tracker object. More...
|
|
This class implements a base class for all visual tracker objects.
Executes the tracking step for a collection of frames and corresponding cameras This function allows to specify an absolute orientation 'absoluteOrientation' provided by e.g., an IMU sensor.
This orientation can be defined in relation to an independent coordinate system not related with the tracking objects (as long as this coordinate system does not change between successive calls).
The tracker can use the provided orientation to improve tracking robustness.
- Note
- The base implementation will only accept a single frame and camera and will return false for multiple frames and cameras. If the camera type is not a pinhole camera, the input frame will be undistorted and the camera will be converted to a pinhole camera, which is an expensive operation. For customization this function needs to be overriden.
-
Once the deprecated function below has been removed, this function will become purely virtual. For any derived class, it is strongly suggested to provide an override of this function.
- Parameters
-
frames | The frames to be used for tracking, must have at least one element and have same number of elements as anyCameras , all elements must be valid |
anyCameras | The camera objects associated with the frames, with width and height must match that of each corresponding frame, must have same number of elements as frames , all elements must be valid |
transformations | The resulting 6DOF poses combined with the tracking IDs |
world_R_camera | An optional absolute orientation of the camera in the moment the frame was taken, defined in a coordinate system (e.g., world) not related with the tracking objects, an invalid object otherwise |
worker | An optional worker object |
- Returns
- True, if succeeded
Reimplemented in Ocean::Tracking::RMV::RMVFeatureTracker6DOF.