Mt2dTrack Class Reference Library » 运动追踪器

#include <lib_motiontracker.h>

详细描述

Represents a single 2D track.

Contains a set of image positions for a set of frames. Provides information about which frames the track exists for, the status of the track, and position data for the frames on which the track exists.

This data represents the 2D motion of a single feature within the footage.

公共成员函数

String   GetName () const
MtTrkGid GetId () const
Mt2dTrackStatus   GetStatus () const
BaseSelect GetFramesWithTrackData () const
MtData GetDataForFrame ( Int32 frameNum) const
MtData GetDataForCurrentFrame () const

静态公共成员函数

static Mt2dTrack Alloc ()
static void  Free ( Mt2dTrack *&p)

私有成员函数

  Mt2dTrack ()
  ~Mt2dTrack ()

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

◆  Mt2dTrack()

Mt2dTrack () private

◆  ~Mt2dTrack()

~ Mt2dTrack () private

成员函数文档编制

◆  Alloc()

static Mt2dTrack * Alloc ( )
static

Internal .

◆  Free()

static void Free ( Mt2dTrack *&  p )
static

Destructs Mt2dTracks allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.

参数
[in,out] p The Mt2dTrack to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.

◆  GetName()

String GetName ( ) const

Queries the track name.

返回
The track name.

◆  GetId()

MtTrkGid * GetId ( ) const

Queries the track global ID.

警告
Caller is responsible for calling Free() on the returned track ID when it is no longer needed.
返回
The track ID.
A copy of the track ID, or nullptr . The caller owns the pointed MtTrkGid .

◆  GetStatus()

Mt2dTrackStatus GetStatus ( ) const

Queries the track status.

返回
The track status.

◆  GetFramesWithTrackData()

BaseSelect * GetFramesWithTrackData ( ) const

Retrieves a BaseSelect containing the set of frames for which 2D tracking data exists.

警告
Caller is responsible for calling Free() on the returned selection when it is no longer needed.
返回
A copy of the BaseSelect of frames. The caller owns the pointed BaseSelect .

◆  GetDataForFrame()

MtData * GetDataForFrame ( Int32   frameNum ) const

Retrieves the tracking data for given frame number.

警告
Caller is responsible for calling Free() on the returned tracking data when it is no longer needed. Returns a pointer to a copy of the data. Caller is owner, and is responsible for calling Free on the pointer when no longer needed.
返回
A copy of the tracking data, or nullptr if it does not exists for requested frame. The caller owns the pointed MtData .

◆  GetDataForCurrentFrame()

MtData * GetDataForCurrentFrame ( ) const

Retrieves the tracking data for current frame of active document.

警告
Caller is responsible for calling Free() on the returned tracking data when it is no longer needed.
注意
Normally GetDataForFrame() should be used instead with the frame number passed explicitly.
返回
A copy of the current frame tracking data, or nullptr if it does not exists. The caller owns the pointed MtData .