NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
A class to match video frames to tracking frames, or two sets of tracking data when reading recorded tracking data. More...
Public Member Functions | |
mitkClassMacroItkParent (TwoTrackerAnalysis, itk::Object) static Pointer New() | |
void | TemporalCalibration (int windowLow=-100, int windowHigh=100, bool visualise=false, std::string fileout="") |
Temporal calibration of two tracking streams. The Lag is adjusted so as to minimalise maximise the correlation between the tracking signals. More... | |
void | HandeyeCalibration (bool visualise=false, std::string fileout="", int HowManyMatrices=4, bool CullOutliers=false) |
Pass a file name that defines the position of a point fixed in world coordinates relative to the camera lens, along with the on screen coordinates of the point. The world position of the point and the handeye calibration are optimised to minimise the residual error of the reconstructed point. More... | |
bool | CheckRigidBody (cv::Mat w2ToW1, bool CullOutliers=false) |
virtual void | SetTimingTolerance (long long int _arg) |
Public Member Functions inherited from mitk::TwoTrackerMatching | |
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 | |
TwoTrackerAnalysis () | |
virtual | ~TwoTrackerAnalysis () |
TwoTrackerAnalysis (const TwoTrackerAnalysis &) | |
TwoTrackerAnalysis & | operator= (const TwoTrackerAnalysis &) |
Protected Member Functions inherited from mitk::TwoTrackerMatching | |
TwoTrackerMatching () | |
virtual | ~TwoTrackerMatching () |
TwoTrackerMatching (const TwoTrackerMatching &) | |
TwoTrackerMatching & | operator= (const TwoTrackerMatching &) |
Additional Inherited Members | |
Protected Attributes inherited from mitk::TwoTrackerMatching | |
std::vector< unsigned int > | m_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 |
A class to match video frames to tracking frames, or two sets of tracking data when reading recorded tracking data.
|
protected |
|
protectedvirtual |
|
protected |
bool mitk::TwoTrackerAnalysis::CheckRigidBody | ( | cv::Mat | w2ToW1, |
bool | CullOutliers = false |
||
) |
check it's a rigid body, need to have an estimate of w2ToW1 first
void mitk::TwoTrackerAnalysis::HandeyeCalibration | ( | bool | visualise = false , |
std::string | fileout = "" , |
||
int | HowManyMatrices = 4 , |
||
bool | CullOutliers = false |
||
) |
Pass a file name that defines the position of a point fixed in world coordinates relative to the camera lens, along with the on screen coordinates of the point. The world position of the point and the handeye calibration are optimised to minimise the residual error of the reconstructed point.
mitk::TwoTrackerAnalysis::mitkClassMacroItkParent | ( | TwoTrackerAnalysis | , |
itk::Object | |||
) |
|
protected |
void mitk::TwoTrackerAnalysis::TemporalCalibration | ( | int | windowLow = -100 , |
int | windowHigh = 100 , |
||
bool | visualise = false , |
||
std::string | fileout = "" |
||
) |
Temporal calibration of two tracking streams. The Lag is adjusted so as to minimalise maximise the correlation between the tracking signals.