NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mitk::TwoTrackerMatching Class Reference

A class to match two sets of time stamped data currently for reading recorded tracking data. More...

Inheritance diagram for mitk::TwoTrackerMatching:
Inheritance graph
[legend]
Collaboration diagram for mitk::TwoTrackerMatching:
Collaboration graph
[legend]

Public Member Functions

 mitkClassMacroItkParent (TwoTrackerMatching, itk::Object) static Pointer New()
 
void Initialise (std::string directory1, std::string directory2)
 Initialise the class by passing it two directory names. More...
 
cv::Mat GetTrackerMatrix (unsigned int index, long long *TimingError=NULL, unsigned int TrackerIndex=0)
 Return the tracking matrix for a given video index. More...
 
bool IsReady ()
 returns state of m_Ready More...
 
int GetNumberOfFrames ()
 Get the frame count. More...
 
void SetLagMilliseconds (unsigned long long Lag, bool LagIsNegative=false)
 If the tracking data is ahead of the video data you can set a video lag in milliseconds to account for this. If the video is ahead of the tracking set argument 2 to true. More...
 
void FlipMats1 ()
 
void FlipMats2 ()
 

Protected Member Functions

 TwoTrackerMatching ()
 
virtual ~TwoTrackerMatching ()
 
 TwoTrackerMatching (const TwoTrackerMatching &)
 
TwoTrackerMatchingoperator= (const TwoTrackerMatching &)
 

Protected Attributes

std::vector< unsigned intm_FrameNumbers
 
TrackingAndTimeStampsContainer m_TimeStampsContainer1
 
TrackingAndTimeStampsContainer m_TimeStampsContainer2
 
bool m_Ready
 
std::string m_Directory1
 
std::string m_Directory2
 
TrackingMatrices m_TrackingMatrices11
 
TrackingMatrices m_TrackingMatrices22
 
TrackingMatrices m_TrackingMatrices12
 
TrackingMatrices m_TrackingMatrices21
 

Detailed Description

A class to match two sets of time stamped data currently for reading recorded tracking data.

Constructor & Destructor Documentation

mitk::TwoTrackerMatching::TwoTrackerMatching ( )
protected
mitk::TwoTrackerMatching::~TwoTrackerMatching ( )
protectedvirtual
mitk::TwoTrackerMatching::TwoTrackerMatching ( const TwoTrackerMatching )
protected

Member Function Documentation

void mitk::TwoTrackerMatching::FlipMats1 ( )
void mitk::TwoTrackerMatching::FlipMats2 ( )
int mitk::TwoTrackerMatching::GetNumberOfFrames ( )
inline

Get the frame count.

cv::Mat mitk::TwoTrackerMatching::GetTrackerMatrix ( unsigned int  index,
long long *  TimingError = NULL,
unsigned int  TrackerIndex = 0 
)

Return the tracking matrix for a given video index.

void mitk::TwoTrackerMatching::Initialise ( std::string  directory1,
std::string  directory2 
)

Initialise the class by passing it two directory names.

bool mitk::TwoTrackerMatching::IsReady ( )
inline

returns state of m_Ready

mitk::TwoTrackerMatching::mitkClassMacroItkParent ( TwoTrackerMatching  ,
itk::Object   
)
TwoTrackerMatching& mitk::TwoTrackerMatching::operator= ( const TwoTrackerMatching )
protected
void mitk::TwoTrackerMatching::SetLagMilliseconds ( unsigned long long  Lag,
bool  LagIsNegative = false 
)

If the tracking data is ahead of the video data you can set a video lag in milliseconds to account for this. If the video is ahead of the tracking set argument 2 to true.

Member Data Documentation

std::string mitk::TwoTrackerMatching::m_Directory1
protected
std::string mitk::TwoTrackerMatching::m_Directory2
protected
std::vector<unsigned int> mitk::TwoTrackerMatching::m_FrameNumbers
protected
bool mitk::TwoTrackerMatching::m_Ready
protected
TrackingAndTimeStampsContainer mitk::TwoTrackerMatching::m_TimeStampsContainer1
protected
TrackingAndTimeStampsContainer mitk::TwoTrackerMatching::m_TimeStampsContainer2
protected
TrackingMatrices mitk::TwoTrackerMatching::m_TrackingMatrices11
protected
TrackingMatrices mitk::TwoTrackerMatching::m_TrackingMatrices12
protected
TrackingMatrices mitk::TwoTrackerMatching::m_TrackingMatrices21
protected
TrackingMatrices mitk::TwoTrackerMatching::m_TrackingMatrices22
protected

The documentation for this class was generated from the following files: