#include <lib_motiontracker.h>
Represents a single frame of a single track.
Contains image position information which can be queried as normalized coordinates, pixel coordinates, or corresponding camera ray direction.
Public Member Functions | |
| Vector | GetNormalisedPosition () const |
| Vector | GetPixelPosition (MtFootageData *sdkFh, Bool originalRes) const |
| Vector | GetCameraSpaceDirection (Float focalLength, Float sensorWidth) const |
Static Public Member Functions | |
| static MtData * | Alloc () |
| static void | Free (MtData *&p) |
Private Member Functions | |
| MtData () | |
| ~MtData () | |
|
private |
|
private |
| Vector GetNormalisedPosition | ( | ) | const |
| Vector GetPixelPosition | ( | MtFootageData * | sdkFh, |
| Bool | originalRes | ||
| ) | const |
Retrieves the track position in footage pixel coordinates.
| [in] | sdkFh | The footage object, used to define resolution and aspect ratio. The caller owns the pointed MtFootageData. |
| [in] | originalRes | If true, the returned pixel coordinates are for the original footage. If false, the returned pixel coordinates are for the downsampled footage. |
Generates a ray in camera space corresponding to the position of the track.
| [in] | focalLength | The focal length to use for the camera (in mm). |
| [in] | sensorWidth | The sensor width to use for the camera (in mm). |
|
static |
Internal.