NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
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 &) | |
ProjectPointsOnStereoVideo & | operator= (const ProjectPointsOnStereoVideo &) |
|
protected |
|
protectedvirtual |
|
protected |
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 |
|
virtual |
|
virtual |
std::vector< mitk::PickedPointList::Pointer > mitk::ProjectPointsOnStereoVideo::GetPointsInLeftLensCS | ( | ) |
std::vector< mitk::ProjectedPointPairsWithTimingError > mitk::ProjectPointsOnStereoVideo::GetProjectedPoints | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
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 | |||
) |
|
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 |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void mitk::ProjectPointsOnStereoVideo::SetGoldStandardObjects | ( | std::vector< mitk::PickedObject > | pickedObjects | ) |
|
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 |
Set the projector screen buffer.
void mitk::ProjectPointsOnStereoVideo::SetRightGoldStandardPoints | ( | std::vector< GoldStandardPoint > | points, |
mitk::VideoTrackerMatching::Pointer | matcher | ||
) |
void mitk::ProjectPointsOnStereoVideo::SetSaveVideo | ( | bool | state | ) |
|
virtual |
void mitk::ProjectPointsOnStereoVideo::SetVisualise | ( | bool | visualise | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void mitk::ProjectPointsOnStereoVideo::TriangulateGoldStandardPoints | ( | std::string | outPrefix, |
mitk::VideoTrackerMatching::Pointer | trackerMatcher | ||
) |
Triangulates any stereo matched gold standard objects to world coordinates.