Class to track pixel movement based on a transformation. More...
#include <mia/template/trackpoint.hh>
Public Types | |
typedef Transformation::Vector | Vector |
Public Member Functions | |
int | get_id () const |
const Vector & | get_pos () const |
const std::string & | get_reserved () const |
returns the reserved field More... | |
float | get_time () const |
void | move (float timestep, const Transformation &t) |
void | print (std::ostream &os) const |
bool | read (std::string &is) |
TTrackPoint () | |
TTrackPoint (int id, float time, const Vector &pos, const std::string &reserved) | |
Static Public Member Functions | |
static std::vector< TTrackPoint > | load_trackpoints (const std::string &in_filename) |
Class to track pixel movement based on a transformation.
transformation | type to be considered |
This class holds the information to track a single pixel in ND space (defined by the transformation) over time and with a given transformation.
Definition at line 41 of file template/trackpoint.hh.
typedef Transformation::Vector TTrackPoint< Transformation >::Vector |
Definition at line 43 of file template/trackpoint.hh.
TTrackPoint< Transformation >::TTrackPoint | ( | ) |
TTrackPoint< Transformation >::TTrackPoint | ( | int | id, |
float | time, | ||
const Vector & | pos, | ||
const std::string & | reserved | ||
) |
Initialize a new tracking point
id | |
time | |
pos | |
reserved |
int TTrackPoint< Transformation >::get_id | ( | ) | const |
const Vector& TTrackPoint< Transformation >::get_pos | ( | ) | const |
const std::string& TTrackPoint< Transformation >::get_reserved | ( | ) | const |
returns the reserved field
float TTrackPoint< Transformation >::get_time | ( | ) | const |
|
static |
Load the trackpoints from an input file
in_filename | input file name in csv format |
void TTrackPoint< Transformation >::move | ( | float | timestep, |
const Transformation & | t | ||
) |
Mova the pixel according tho a time step and based on the given transformation
timestep | the time step to apply |
t | the transformation to apply |
void TTrackPoint< Transformation >::print | ( | std::ostream & | os | ) | const |
print the point to an output stream
os | output stream |
bool TTrackPoint< Transformation >::read | ( | std::string & | is | ) |
Read the point from an input line. The point must be of format id;time;x;y;z[;reserved]
is | input string to read the point from |