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 ()

构造函数 & 析构函数文档编制

◆  MtData()

MtData () private

◆  ~MtData()

~ MtData () private

成员函数文档编制

◆  GetNormalisedPosition()

向量 GetNormalisedPosition ( ) const

Retrieves the track position in normalized coordinates.

返回
The track position:

◆  GetPixelPosition()

向量 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.
返回
The track position.

◆  GetCameraSpaceDirection()

向量 GetCameraSpaceDirection ( Float   focalLength ,
Float   sensorWidth  
) const

Generates a ray in camera space corresponding to the position of the track.

注意
If parameters are taken from the reconstructed camera then this generates a camera space ray 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).
返回
The ray in camera space corresponding to the position of the track.

◆  Alloc()

static MtData * Alloc ( )
static

Internal .

◆  Free()

static void Free ( MtData *&  p )
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.