NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Cost function for Ultrasound Pointer based calibration, a la Muratore 2001. More...
Public Types | |
typedef UltrasoundPointerCalibrationCostFunction | Self |
typedef itk::MultipleValuedCostFunction | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
typedef Superclass::ParametersType | ParametersType |
typedef Superclass::DerivativeType | DerivativeType |
typedef Superclass::MeasureType | MeasureType |
Public Member Functions | |
virtual unsigned int | GetNumberOfValues (void) const override |
Equal to the number of points * 3. More... | |
virtual unsigned int | GetNumberOfParameters () const override |
Required by base class to return the number of parameters. More... | |
virtual void | GetDerivative (const ParametersType ¶meters, DerivativeType &derivative) const override |
Simply uses central differences to approximate the derivative for each of the parameters. See also SetScales where you set the relative size of each parameter step size. More... | |
void | SetScales (const ParametersType &scales) |
Used when calculating derivative using central differences. More... | |
double | GetResidual (const MeasureType &values) const |
Returns the RMS residual of all the values stored in the values array. More... | |
vtkSmartPointer< vtkMatrix4x4 > | GetRigidMatrix (const ParametersType ¶meters) const |
Returns the rigid matrix for the given parameters. More... | |
vtkSmartPointer< vtkMatrix4x4 > | GetScalingMatrix (const ParametersType ¶meters) const |
Returns the scaling matrix for the given parameters. More... | |
virtual MeasureType | GetValue (const ParametersType ¶meters) const override |
The cost function is the residual error of the reconstructed point, where this function returns an array of n (x, y, z) tuples where n is the number of points, and each x, y, z measure is the difference from the invariant point. More... | |
void | SetImagePoints (const mitk::PointSet::Pointer imagePoints) |
Sets the points in image space. More... | |
void | SetSensorPoints (const mitk::PointSet::Pointer sensorPoints) |
Sets the points in sensor space. More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
UltrasoundPointerCalibrationCostFunction () | |
virtual | ~UltrasoundPointerCalibrationCostFunction () |
UltrasoundPointerCalibrationCostFunction (const UltrasoundPointerCalibrationCostFunction &) | |
UltrasoundPointerCalibrationCostFunction & | operator= (const UltrasoundPointerCalibrationCostFunction &) |
void | ValidateSizeOfParametersArray (const ParametersType ¶meters) const |
Checks the supplied parameters array is the right size (i.e. it equals this->GetNumberOfParameters()), and throws mitk::Exception if it isnt. More... | |
void | ValidateSizeOfScalesArray (const ParametersType ¶meters) const |
Checks the supplied parameters array is the right size (i.e. it equals this->m_Scales.GetSize()), and throws mitk::Exception if it isnt. More... | |
Cost function for Ultrasound Pointer based calibration, a la Muratore 2001.
typedef itk::SmartPointer<const Self> niftk::UltrasoundPointerCalibrationCostFunction::ConstPointer |
typedef Superclass::DerivativeType niftk::UltrasoundPointerCalibrationCostFunction::DerivativeType |
typedef Superclass::MeasureType niftk::UltrasoundPointerCalibrationCostFunction::MeasureType |
typedef Superclass::ParametersType niftk::UltrasoundPointerCalibrationCostFunction::ParametersType |
typedef itk::SmartPointer<Self> niftk::UltrasoundPointerCalibrationCostFunction::Pointer |
typedef UltrasoundPointerCalibrationCostFunction niftk::UltrasoundPointerCalibrationCostFunction::Self |
typedef itk::MultipleValuedCostFunction niftk::UltrasoundPointerCalibrationCostFunction::Superclass |
|
protected |
|
protectedvirtual |
|
protected |
|
overridevirtual |
Simply uses central differences to approximate the derivative for each of the parameters. See also SetScales where you set the relative size of each parameter step size.
|
overridevirtual |
Required by base class to return the number of parameters.
|
overridevirtual |
Equal to the number of points * 3.
double niftk::UltrasoundPointerCalibrationCostFunction::GetResidual | ( | const MeasureType & | values | ) | const |
Returns the RMS residual of all the values stored in the values array.
vtkSmartPointer< vtkMatrix4x4 > niftk::UltrasoundPointerCalibrationCostFunction::GetRigidMatrix | ( | const ParametersType & | parameters | ) | const |
Returns the rigid matrix for the given parameters.
vtkSmartPointer< vtkMatrix4x4 > niftk::UltrasoundPointerCalibrationCostFunction::GetScalingMatrix | ( | const ParametersType & | parameters | ) | const |
Returns the scaling matrix for the given parameters.
|
overridevirtual |
The cost function is the residual error of the reconstructed point, where this function returns an array of n (x, y, z) tuples where n is the number of points, and each x, y, z measure is the difference from the invariant point.
|
static |
|
protected |
void niftk::UltrasoundPointerCalibrationCostFunction::SetImagePoints | ( | const mitk::PointSet::Pointer | imagePoints | ) |
Sets the points in image space.
void niftk::UltrasoundPointerCalibrationCostFunction::SetScales | ( | const ParametersType & | scales | ) |
Used when calculating derivative using central differences.
void niftk::UltrasoundPointerCalibrationCostFunction::SetSensorPoints | ( | const mitk::PointSet::Pointer | sensorPoints | ) |
Sets the points in sensor space.
|
protected |
Checks the supplied parameters array is the right size (i.e. it equals this->GetNumberOfParameters()), and throws mitk::Exception if it isnt.
|
protected |
Checks the supplied parameters array is the right size (i.e. it equals this->m_Scales.GetSize()), and throws mitk::Exception if it isnt.