7 #ifndef __vtkPlusPhantomLandmarkRegistrationAlgo_h 8 #define __vtkPlusPhantomLandmarkRegistrationAlgo_h 10 #include "PlusConfigure.h" 12 #include "vtkPlusCalibrationExport.h" 14 #include "vtkMatrix4x4.h" 15 #include "vtkObject.h" 16 #include "vtkPoints.h" 19 class vtkXMLDataElement;
39 PlusStatus LandmarkRegister(vtkIGSIOTransformRepository* aTransformRepository = NULL);
45 PlusStatus ReadConfiguration(vtkXMLDataElement* aConfig);
58 double GetMinimunDistanceBetweenTwoLandmarksMm();
61 void GetDefinedLandmarksCentroid_Phantom(
double landmarksCentroid_Phantom[4]);
64 void GetDefinedLandmarksCentroid_Reference(
double landmarksAverage_Reference[4]);
70 void GetLandmarkCameraPosition_Reference(
int index,
double cameraPosition_Reference[4]);
73 void GetDefinedLandmark_Reference(
int index,
double cameraPosition_Reference[4]);
76 void PrintRecordedLandmarks_Phantom();
80 vtkGetMacro(RegistrationErrorMm,
double);
82 vtkGetObjectMacro(PhantomToReferenceTransformMatrix, vtkMatrix4x4);
83 vtkSetObjectMacro(PhantomToReferenceTransformMatrix, vtkMatrix4x4);
85 vtkGetObjectMacro(DefinedLandmarks_Phantom, vtkPoints);
86 vtkGetObjectMacro(RecordedLandmarks_Reference, vtkPoints);
88 vtkGetStringMacro(PhantomCoordinateFrame);
89 vtkGetStringMacro(ReferenceCoordinateFrame);
90 vtkGetStringMacro(StylusTipCoordinateFrame);
98 vtkSetObjectMacro(DefinedLandmarks_Phantom, vtkPoints);
101 vtkSetObjectMacro(RecordedLandmarks_Reference, vtkPoints);
103 vtkSetStringMacro(PhantomCoordinateFrame);
104 vtkSetStringMacro(ReferenceCoordinateFrame);
105 vtkSetStringMacro(StylusTipCoordinateFrame);
double minimumDistanceBetweenTwoLandmarksMm
char * ReferenceCoordinateFrame
double RegistrationErrorMm
static std::string GetConfigurationElementName()
vtkPoints * DefinedLandmarks_Phantom
char * PhantomCoordinateFrame
vtkPoints * RecordedLandmarks_Reference
static std::string ConfigurationElementName
Landmark registration to determine the Phantom pose relative to the attached marker (PhantomReference...
vtkMatrix4x4 * PhantomToReferenceTransformMatrix
std::vector< std::string > DefinedLandmarkNames
char * StylusTipCoordinateFrame
std::string GetDefinedLandmarkName(int aIndex)