MtData Class Reference Library » 运动追踪器
#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.
公共成员函数 |
|
向量 | GetNormalisedPosition () const |
向量 | GetPixelPosition ( MtFootageData *sdkFh, Bool originalRes) const |
向量 | GetCameraSpaceDirection ( Float focalLength, Float sensorWidth) const |
静态公共成员函数 |
|
static MtData * | Alloc () |
static void | Free ( MtData *&p) |
私有成员函数 |
|
MtData () | |
~MtData () |
|
|
向量 GetNormalisedPosition | ( | ) | const |
Retrieves the track position in normalized coordinates.
向量 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 | 若 true , the returned pixel coordinates are for the original footage. If false , the returned pixel coordinates are for the downsampled footage. |
向量 GetCameraSpaceDirection | ( | Float | focalLength , |
Float | sensorWidth | ||
) | const |
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 .
|
static |
Destructs MtDatas allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
[in,out] | p | The MtData to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |