NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
itkUltrasoundPinCalibrationCostFunction.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef itkUltrasoundPinCalibrationCostFunction_h
16 #define itkUltrasoundPinCalibrationCostFunction_h
17 
19 
20 namespace itk {
21 
29 {
30 
31 public:
32 
35  typedef itk::SmartPointer<Self> Pointer;
36  typedef itk::SmartPointer<const Self> ConstPointer;
37 
38  itkNewMacro( Self );
39 
43 
44  itkSetMacro(ScaleFactors, mitk::Point2D);
45  itkGetConstMacro(ScaleFactors, mitk::Point2D);
46 
47  itkSetMacro(OptimiseScaleFactors, bool);
48  itkGetConstMacro(OptimiseScaleFactors, bool);
49 
53  virtual cv::Matx44d GetCalibrationTransformation(const ParametersType & parameters) const override;
54 
55 protected:
56 
59 
60  UltrasoundPinCalibrationCostFunction(const UltrasoundPinCalibrationCostFunction&); // Purposefully not implemented.
62 
66  cv::Matx44d GetScalingTransformation(const ParametersType & parameters) const;
67 
68 private:
69 
70  mitk::Point2D m_ScaleFactors;
71  bool m_OptimiseScaleFactors;
72 
73 };
74 
75 } // end namespace
76 
77 #endif
itk::SmartPointer< const Self > ConstPointer
Definition: itkUltrasoundPinCalibrationCostFunction.h:36
itk::InvariantPointCalibrationCostFunction Superclass
Definition: itkUltrasoundPinCalibrationCostFunction.h:34
Base class for Ultrasound Pin/Cross-Wire calibration and Video Hand-Eye calibration cost functions...
Definition: itkInvariantPointCalibrationCostFunction.h:47
Superclass::DerivativeType DerivativeType
Definition: itkInvariantPointCalibrationCostFunction.h:58
Superclass::ParametersType ParametersType
Definition: itkInvariantPointCalibrationCostFunction.h:57
Superclass::MeasureType MeasureType
Definition: itkInvariantPointCalibrationCostFunction.h:59
virtual cv::Matx44d GetCalibrationTransformation(const ParametersType &parameters) const override
Definition: itkUltrasoundPinCalibrationCostFunction.cxx:57
Definition: niftkITKAffineResampleImage.cxx:74
Superclass::DerivativeType DerivativeType
Definition: itkUltrasoundPinCalibrationCostFunction.h:41
virtual ~UltrasoundPinCalibrationCostFunction()
Definition: itkUltrasoundPinCalibrationCostFunction.cxx:30
itk::SmartPointer< Self > Pointer
Definition: itkUltrasoundPinCalibrationCostFunction.h:35
Superclass::ParametersType ParametersType
Definition: itkUltrasoundPinCalibrationCostFunction.h:38
Minimises the RMS error around a stationary invariant point.
Definition: itkUltrasoundPinCalibrationCostFunction.h:28
Superclass::MeasureType MeasureType
Definition: itkUltrasoundPinCalibrationCostFunction.h:42
cv::Matx44d GetScalingTransformation(const ParametersType &parameters) const
Computes the scaling transformation.
Definition: itkUltrasoundPinCalibrationCostFunction.cxx:36
UltrasoundPinCalibrationCostFunction()
Definition: itkUltrasoundPinCalibrationCostFunction.cxx:21
UltrasoundPinCalibrationCostFunction Self
Definition: itkUltrasoundPinCalibrationCostFunction.h:33
UltrasoundPinCalibrationCostFunction & operator=(const UltrasoundPinCalibrationCostFunction &)