Tracore
|
#include <Tracklet.h>
Public Member Functions | |
Tracklet () | |
Tracklet (ObjectData first_object) | |
void | AddPathObjectFirst (ObjectData obj) |
void | AddPathObjectLast (ObjectData obj) |
size_t | GetFirstFrameIndex () |
size_t | GetLastFrameIndex () |
ObjectData | GetPathObject (size_t i) |
virtual double | CompareTo (ObjectData *obj) |
![]() | |
ObjectData () | |
ObjectData (std::size_t frame_index) | |
std::size_t | GetFrameIndex () const |
bool | IsVirtual () const |
Additional Inherited Members | |
![]() | |
virtual void | Print (std::ostream &os) const |
![]() | |
std::size_t | frame_index_ |
A class for storing multiple object data objects. The object data objects are handled as a path.
core::Tracklet::Tracklet | ( | ) |
Creates a empty tracklet to store path object in. This is NOT a virtual object.
core::Tracklet::Tracklet | ( | ObjectData | first_object | ) |
Creates a tracklet with the given initial object.
first_object | The first object to store in the path |
void core::Tracklet::AddPathObjectFirst | ( | ObjectData | obj | ) |
Adds the object in the first place of the path.
obj | The object to add |
void core::Tracklet::AddPathObjectLast | ( | ObjectData | obj | ) |
Adds the object in the last place of the path.
obj | The object to add |
|
virtual |
Compares this object with the given object.
obj | A pointer to the object to compare this object to |
Reimplemented from core::ObjectData.
size_t core::Tracklet::GetFirstFrameIndex | ( | ) |
Gets the lowest frame index of all path objects.
size_t core::Tracklet::GetLastFrameIndex | ( | ) |
Gets the highest frame index of all path objects.
ObjectData core::Tracklet::GetPathObject | ( | size_t | i | ) |
Gets the path object at the given index.