NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Protected Member Functions | List of all members
mitk::ProjectPointsOnStereoVideo Class Reference
Inheritance diagram for mitk::ProjectPointsOnStereoVideo:
Inheritance graph
[legend]
Collaboration diagram for mitk::ProjectPointsOnStereoVideo:
Collaboration graph
[legend]

Public Member Functions

 mitkClassMacroItkParent (ProjectPointsOnStereoVideo, itk::Object) static Pointer New()
 
void Initialise (std::string directory, std::string calibrationParameterDirectory)
 Set up the projector, finds the video file in the directory, and the tracking data, and sets up the videotracker matcher. More...
 
void Initialise (std::string directory)
 Set up the projector, finds the video file in the directory, and the tracking data, and sets up the videotracker matcher, without any calibration information. More...
 
void Project (mitk::VideoTrackerMatching::Pointer matcher, std::vector< double > *perturbation=NULL)
 performs the point projection More...
 
void SetMatcherCameraToTracker (mitk::VideoTrackerMatching::Pointer matcher)
 Sets the cameratotracker matrix for the passed matcher to match the matrix for the projector. More...
 
void SaveProjectedCoordinates (std::string filename)
 save the projected coordinates for each frame to a text file More...
 
void SavePointsInLeftLensCoordinates (std::string filename)
 save the points in left lens coordinates to a text file More...
 
void AppendWorldPointsByTriangulation (std::vector< mitk::ProjectedPointPair > onScreenPointPairs, std::vector< unsigned int > frameNumber, mitk::VideoTrackerMatching::Pointer matcher, std::vector< double > *perturbation=NULL)
 Append to world points by triangulating their position from the on screen coordinates for the specified frame. More...
 
void SetVisualise (bool)
 
void SetSaveVideo (bool state)
 
virtual void SetCorrectVideoAspectRatioByHalvingWidth (bool _arg)
 
virtual void SetTrackerIndex (int _arg)
 
virtual void SetReferenceIndex (int _arg)
 
virtual void SetDrawAxes (bool _arg)
 
virtual void SetHaltOnVideoReadFail (bool _arg)
 
virtual void SetDontProject (bool _arg)
 
virtual void SetVisualiseTrackingStatus (bool _arg)
 
virtual void SetAnnotateWithGoldStandards (bool _arg)
 
virtual void SetWriteAnnotatedGoldStandards (bool _arg)
 
virtual void SetWriteTrackingPositionData (bool _arg)
 
virtual void SetWriteTrackingMatrixFilesPerFrame (bool _arg)
 
virtual void SetAllowablePointMatchingRatio (double _arg)
 
virtual void SetAllowableTimingError (long long _arg)
 
void SetLeftGoldStandardPoints (std::vector< GoldStandardPoint > points, mitk::VideoTrackerMatching::Pointer matcher)
 
void SetRightGoldStandardPoints (std::vector< GoldStandardPoint > points, mitk::VideoTrackerMatching::Pointer matcher)
 
void SetGoldStandardObjects (std::vector< mitk::PickedObject > pickedObjects)
 
void AppendWorldPoints (std::vector< mitk::WorldPoint > points)
 appends points to world points and corresponding vectors WARNING, WorldPoint has no ID, so this gets lost More...
 
void AppendClassifierWorldPoints (std::vector< mitk::WorldPoint > points)
 appends point to classifier world points More...
 
void ClearWorldPoints ()
 clear the list of world points More...
 
std::vector
< mitk::PickedPointList::Pointer > 
GetPointsInLeftLensCS ()
 
std::vector
< mitk::ProjectedPointPairsWithTimingError
GetProjectedPoints ()
 
virtual bool GetInitOK ()
 
virtual bool GetProjectOK ()
 
virtual std::vector< cv::Mat > GetWorldToLeftCameraMatrices ()
 
virtual std::vector< cv::Point2d > GetLeftProjectionErrors ()
 
virtual std::vector< cv::Point2d > GetRightProjectionErrors ()
 
virtual std::vector< cv::Point3d > GetLeftReProjectionErrors ()
 
virtual std::vector< cv::Point3d > GetRightReProjectionErrors ()
 
virtual std::vector< cv::Point3d > GetTriangulationErrors ()
 
void CalculateProjectionErrors (std::string outPrefix)
 calculates the projection and re-projection errors More...
 
void CalculateTriangulationErrors (std::string outPrefix)
 calculates the triangulation errors More...
 
void TriangulateGoldStandardPoints (std::string outPrefix, mitk::VideoTrackerMatching::Pointer trackerMatcher)
 Triangulates any stereo matched gold standard objects to world coordinates. More...
 
virtual void SetProjectorScreenBuffer (double _arg)
 Set the projector screen buffer. More...
 
virtual void SetClassifierScreenBuffer (double _arg)
 
virtual void SetTriangulatedPointsOutName (std::string _arg)
 
virtual void SetWorldPoints (mitk::PickedPointList::Pointer _arg)
 
virtual void SetClassifierWorldPoints (mitk::PickedPointList::Pointer _arg)
 

Protected Member Functions

 ProjectPointsOnStereoVideo ()
 
virtual ~ProjectPointsOnStereoVideo ()
 
 ProjectPointsOnStereoVideo (const ProjectPointsOnStereoVideo &)
 
ProjectPointsOnStereoVideooperator= (const ProjectPointsOnStereoVideo &)
 

Constructor & Destructor Documentation

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

Member Function Documentation

void mitk::ProjectPointsOnStereoVideo::AppendClassifierWorldPoints ( std::vector< mitk::WorldPoint points)

appends point to classifier world points

void mitk::ProjectPointsOnStereoVideo::AppendWorldPoints ( std::vector< mitk::WorldPoint points)

appends points to world points and corresponding vectors WARNING, WorldPoint has no ID, so this gets lost

void mitk::ProjectPointsOnStereoVideo::AppendWorldPointsByTriangulation ( std::vector< mitk::ProjectedPointPair onScreenPointPairs,
std::vector< unsigned int frameNumber,
mitk::VideoTrackerMatching::Pointer  matcher,
std::vector< double > *  perturbation = NULL 
)

Append to world points by triangulating their position from the on screen coordinates for the specified frame.

void mitk::ProjectPointsOnStereoVideo::CalculateProjectionErrors ( std::string  outPrefix)

calculates the projection and re-projection errors

void mitk::ProjectPointsOnStereoVideo::CalculateTriangulationErrors ( std::string  outPrefix)

calculates the triangulation errors

void mitk::ProjectPointsOnStereoVideo::ClearWorldPoints ( )

clear the list of world points

virtual bool mitk::ProjectPointsOnStereoVideo::GetInitOK ( )
virtual
virtual std::vector< cv::Point2d > mitk::ProjectPointsOnStereoVideo::GetLeftProjectionErrors ( )
virtual
virtual std::vector< cv::Point3d > mitk::ProjectPointsOnStereoVideo::GetLeftReProjectionErrors ( )
virtual
std::vector< mitk::PickedPointList::Pointer > mitk::ProjectPointsOnStereoVideo::GetPointsInLeftLensCS ( )
std::vector< mitk::ProjectedPointPairsWithTimingError > mitk::ProjectPointsOnStereoVideo::GetProjectedPoints ( )
virtual bool mitk::ProjectPointsOnStereoVideo::GetProjectOK ( )
virtual
virtual std::vector< cv::Point2d > mitk::ProjectPointsOnStereoVideo::GetRightProjectionErrors ( )
virtual
virtual std::vector< cv::Point3d > mitk::ProjectPointsOnStereoVideo::GetRightReProjectionErrors ( )
virtual
virtual std::vector< cv::Point3d > mitk::ProjectPointsOnStereoVideo::GetTriangulationErrors ( )
virtual
virtual std::vector< cv::Mat > mitk::ProjectPointsOnStereoVideo::GetWorldToLeftCameraMatrices ( )
virtual
void mitk::ProjectPointsOnStereoVideo::Initialise ( std::string  directory,
std::string  calibrationParameterDirectory 
)

Set up the projector, finds the video file in the directory, and the tracking data, and sets up the videotracker matcher.

void mitk::ProjectPointsOnStereoVideo::Initialise ( std::string  directory)

Set up the projector, finds the video file in the directory, and the tracking data, and sets up the videotracker matcher, without any calibration information.

mitk::ProjectPointsOnStereoVideo::mitkClassMacroItkParent ( ProjectPointsOnStereoVideo  ,
itk::Object   
)
ProjectPointsOnStereoVideo& mitk::ProjectPointsOnStereoVideo::operator= ( const ProjectPointsOnStereoVideo )
protected
void mitk::ProjectPointsOnStereoVideo::Project ( mitk::VideoTrackerMatching::Pointer  matcher,
std::vector< double > *  perturbation = NULL 
)

performs the point projection

void mitk::ProjectPointsOnStereoVideo::SavePointsInLeftLensCoordinates ( std::string  filename)

save the points in left lens coordinates to a text file

void mitk::ProjectPointsOnStereoVideo::SaveProjectedCoordinates ( std::string  filename)

save the projected coordinates for each frame to a text file

virtual void mitk::ProjectPointsOnStereoVideo::SetAllowablePointMatchingRatio ( double  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetAllowableTimingError ( long long  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetAnnotateWithGoldStandards ( bool  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetClassifierScreenBuffer ( double  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetClassifierWorldPoints ( mitk::PickedPointList::Pointer  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetCorrectVideoAspectRatioByHalvingWidth ( bool  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetDontProject ( bool  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetDrawAxes ( bool  _arg)
virtual
void mitk::ProjectPointsOnStereoVideo::SetGoldStandardObjects ( std::vector< mitk::PickedObject pickedObjects)
virtual void mitk::ProjectPointsOnStereoVideo::SetHaltOnVideoReadFail ( bool  _arg)
virtual
void mitk::ProjectPointsOnStereoVideo::SetLeftGoldStandardPoints ( std::vector< GoldStandardPoint points,
mitk::VideoTrackerMatching::Pointer  matcher 
)
void mitk::ProjectPointsOnStereoVideo::SetMatcherCameraToTracker ( mitk::VideoTrackerMatching::Pointer  matcher)

Sets the cameratotracker matrix for the passed matcher to match the matrix for the projector.

virtual void mitk::ProjectPointsOnStereoVideo::SetProjectorScreenBuffer ( double  _arg)
virtual

Set the projector screen buffer.

virtual void mitk::ProjectPointsOnStereoVideo::SetReferenceIndex ( int  _arg)
virtual
void mitk::ProjectPointsOnStereoVideo::SetRightGoldStandardPoints ( std::vector< GoldStandardPoint points,
mitk::VideoTrackerMatching::Pointer  matcher 
)
void mitk::ProjectPointsOnStereoVideo::SetSaveVideo ( bool  state)
virtual void mitk::ProjectPointsOnStereoVideo::SetTrackerIndex ( int  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetTriangulatedPointsOutName ( std::string  _arg)
virtual
void mitk::ProjectPointsOnStereoVideo::SetVisualise ( bool  visualise)
virtual void mitk::ProjectPointsOnStereoVideo::SetVisualiseTrackingStatus ( bool  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetWorldPoints ( mitk::PickedPointList::Pointer  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetWriteAnnotatedGoldStandards ( bool  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetWriteTrackingMatrixFilesPerFrame ( bool  _arg)
virtual
virtual void mitk::ProjectPointsOnStereoVideo::SetWriteTrackingPositionData ( bool  _arg)
virtual
void mitk::ProjectPointsOnStereoVideo::TriangulateGoldStandardPoints ( std::string  outPrefix,
mitk::VideoTrackerMatching::Pointer  trackerMatcher 
)

Triangulates any stereo matched gold standard objects to world coordinates.


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