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 () |
|
|
|
static |
Internal .
|
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. |
String GetName | ( | ) | const |
Queries the track name.
MtTrkGid * GetId | ( | ) | const |
Queries the track global ID.
Free()
on the returned track ID when it is no longer needed.
Mt2dTrackStatus GetStatus | ( | ) | const |
Queries the track status.
BaseSelect * GetFramesWithTrackData | ( | ) | const |
Retrieves a BaseSelect containing the set of frames for which 2D tracking data exists.
Free()
on the returned selection when it is no longer needed.
MtData * GetDataForFrame | ( | Int32 | frameNum | ) | const |
Retrieves the tracking data for given frame number.
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.
MtData * GetDataForCurrentFrame | ( | ) | const |
Retrieves the tracking data for current frame of active document.
Free()
on the returned tracking data when it is no longer needed.