25 XML_FIND_NESTED_ELEMENT_REQUIRED(PhantomLandmarkLandmarkDetectionElement, aConfig,
"vtkPlusPhantomLandmarkRegistrationAlgo");
26 XML_READ_SCALAR_ATTRIBUTE_OPTIONAL(
double, AcquisitionRate, PhantomLandmarkLandmarkDetectionElement);
28 XML_READ_SCALAR_ATTRIBUTE_OPTIONAL(
double, FilterWindowTimeSec, PhantomLandmarkLandmarkDetectionElement);
29 XML_READ_SCALAR_ATTRIBUTE_OPTIONAL(
double, DetectionTimeSec, PhantomLandmarkLandmarkDetectionElement);
30 XML_READ_SCALAR_ATTRIBUTE_OPTIONAL(
double, StylusShaftMinimumDisplacementThresholdMm, PhantomLandmarkLandmarkDetectionElement);
31 XML_READ_SCALAR_ATTRIBUTE_OPTIONAL(
double, StylusTipMaximumDisplacementThresholdMm, PhantomLandmarkLandmarkDetectionElement);
33 unsigned int filterWindowSize = 0;
34 unsigned int numberOfWindows = 0;
35 if (ComputeFilterWindowSize(filterWindowSize) == IGSIO_FAIL || ComputeNumberOfWindows(numberOfWindows) == IGSIO_FAIL)
40 LOG_DEBUG(
"AcquisitionRate = " << AcquisitionRate <<
"[fps] WindowTimeSec = " << FilterWindowTimeSec <<
"[s] DetectionTimeSec = " << DetectionTimeSec <<
"[s]");
41 LOG_DEBUG(
"NumberOfWindows = " << numberOfWindows <<
" WindowSize = " << filterWindowSize <<
" MinimunDistanceBetweenLandmarksMm = " << MinimumDistanceBetweenLandmarksMm <<
"[mm] LandmarkThreshold " << StylusTipMaximumDisplacementThresholdMm <<
"[mm]");
PlusStatus ReadConfiguration(vtkXMLDataElement *aConfig) override
virtual ~vtkPlusLandmarkDetectionAlgo()
Landmark detection algorithm detects when a calibrated stylus is pivoting around its tip....
vtkPlusLandmarkDetectionAlgo()
vtkStandardNewMacro(vtkPlusLandmarkDetectionAlgo)