#include <itkVariationalRegistrationSSDFunction.h>
This class computes SSD forces in the variational registration framework.
This class implements SSD forces given by
\[ f^{SSD}(x)=\tau\kappa(F(x)-M(x+u(x)))\nabla M(x+u(x)) \]
\(\tau\) is the step size and \(\kappa\) is the mean squared spacing. Alternative, the classical gradient \(\nabla M(x+u(x))\) can be replaced by \(\nabla F(x)\) or \(\frac{\nabla F(x) + \nabla M(x+u(x))}{2}\).
Definition at line 53 of file itkVariationalRegistrationSSDFunction.h.
Inheritance diagram for itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >:
Collaboration diagram for itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >:Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
Static Public Attributes | |
| static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
Static Public Attributes inherited from itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField > | |
| static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
Static Public Attributes inherited from itk::FiniteDifferenceFunction< TDisplacementField > | |
| static constexpr unsigned int | ImageDimension |
| static constexpr unsigned int | ImageDimension |
Protected Types | |
| using | GlobalDataStruct = typename Superclass::GlobalDataStruct |
| enum | GradientType { GRADIENT_TYPE_WARPED = 0 , GRADIENT_TYPE_FIXED = 1 , GRADIENT_TYPE_SYMMETRIC = 2 } |
Additional Inherited Members | |
Protected Attributes inherited from itk::FiniteDifferenceFunction< TDisplacementField > | |
| RadiusType | m_Radius |
| RadiusType | m_Radius |
| PixelRealType | m_ScaleCoefficients [ImageDimension] |
| PixelRealType | m_ScaleCoefficients [ImageDimension] |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::ConstPointer = SmartPointer<const Self> |
Definition at line 63 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::DisplacementFieldType = typename Superclass::DisplacementFieldType |
Deformation field type.
Definition at line 92 of file itkVariationalRegistrationSSDFunction.h.
| typedef Superclass::DisplacementFieldTypePointer itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::DisplacementFieldTypePointer |
Definition at line 93 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::FixedImagePointer = typename Superclass::FixedImagePointer |
Definition at line 80 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::FixedImageType = typename Superclass::FixedImageType |
FixedImage image type.
Definition at line 79 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::FloatOffsetType = typename Superclass::FloatOffsetType |
Definition at line 98 of file itkVariationalRegistrationSSDFunction.h.
|
protected |
Definition at line 170 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::GradientCalculatorPointer = typename GradientCalculatorType::Pointer |
Definition at line 102 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::GradientCalculatorType = CentralDifferenceImageFunction<FixedImageType> |
Image gradient calculator type.
Definition at line 101 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::IndexType = typename FixedImageType::IndexType |
Image parameter types.
Definition at line 87 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::MaskImagePointer = typename Superclass::MaskImagePointer |
Definition at line 84 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::MaskImageType = typename Superclass::MaskImageType |
MaskImage image type.
Definition at line 83 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::MovingImagePointer = typename Superclass::MovingImagePointer |
Definition at line 76 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::MovingImageType = typename Superclass::MovingImageType |
MovingImage image type.
Definition at line 75 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::NeighborhoodType = typename Superclass::NeighborhoodType |
Definition at line 97 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::PixelType = typename Superclass::PixelType |
Various type definitions.
Definition at line 95 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::Pointer = SmartPointer<Self> |
Definition at line 62 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::RadiusType = typename Superclass::RadiusType |
Definition at line 96 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::Self = VariationalRegistrationSSDFunction |
Standard class type alias.
Definition at line 60 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::SizeType = typename FixedImageType::SizeType |
Definition at line 88 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::SpacingType = typename FixedImageType::SpacingType |
Definition at line 89 of file itkVariationalRegistrationSSDFunction.h.
| using itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::Superclass = VariationalRegistrationFunction<TFixedImage, TMovingImage, TDisplacementField> |
Definition at line 61 of file itkVariationalRegistrationSSDFunction.h.
|
protected |
Type of available image forces
| Enumerator | |
|---|---|
| GRADIENT_TYPE_WARPED | |
| GRADIENT_TYPE_FIXED | |
| GRADIENT_TYPE_SYMMETRIC | |
Definition at line 177 of file itkVariationalRegistrationSSDFunction.h.
|
protected |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
inlineoverridevirtual |
Computes the time step for an update. Returns the constant time step scaled with the mean squared spacing.
Reimplemented from itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 161 of file itkVariationalRegistrationSSDFunction.h.
References itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::GetTimeStep(), and m_Normalizer.
|
overridevirtual |
This method is called by a finite difference solver image filter at each pixel that does not lie on a data set boundary
Implements itk::FiniteDifferenceFunction< TDisplacementField >.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::LightObject.
|
inlinevirtual |
Get the threshold below which the absolute difference of intensity yields a match. When the intensities match between a moving and fixed image pixel, the update vector (for that iteration) will be the zero vector.
Definition at line 152 of file itkVariationalRegistrationSSDFunction.h.
References m_IntensityDifferenceThreshold.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >.
References VariationalRegistrationSSDFunction().
|
overridevirtual |
Set the object's state before each iteration.
Reimplemented from itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Print information about the filter.
Reimplemented from itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >.
|
inlinevirtual |
Select that the fixed image gradient is used for computing the forces.
Definition at line 117 of file itkVariationalRegistrationSSDFunction.h.
References GRADIENT_TYPE_FIXED, and m_GradientType.
|
inlinevirtual |
Select that fixed and warped image gradients are used for computing the forces.
Definition at line 132 of file itkVariationalRegistrationSSDFunction.h.
References GRADIENT_TYPE_SYMMETRIC, and m_GradientType.
|
inlinevirtual |
Select that the warped image gradient is used for computing the forces.
Definition at line 124 of file itkVariationalRegistrationSSDFunction.h.
References GRADIENT_TYPE_WARPED, and m_GradientType.
|
inlinevirtual |
Set the threshold below which the absolute difference of intensity yields a match. When the intensities match between a moving and fixed image pixel, the update vector (for that iteration) will be the zero vector. Default is 0.001.
Definition at line 142 of file itkVariationalRegistrationSSDFunction.h.
References m_IntensityDifferenceThreshold.
|
staticconstexpr |
Get image dimension.
Definition at line 72 of file itkVariationalRegistrationSSDFunction.h.
|
private |
Function to compute derivatives of the fixed image.
Definition at line 186 of file itkVariationalRegistrationSSDFunction.h.
|
private |
Set if warped or fixed image gradient is used for force computation.
Definition at line 192 of file itkVariationalRegistrationSSDFunction.h.
Referenced by SetGradientTypeToFixedImage(), SetGradientTypeToSymmetric(), and SetGradientTypeToWarpedMovingImage().
|
private |
Threshold below which two intensity value are assumed to match.
Definition at line 195 of file itkVariationalRegistrationSSDFunction.h.
Referenced by GetIntensityDifferenceThreshold(), and SetIntensityDifferenceThreshold().
|
private |
Precalculated normalizer for spacing consideration.
Definition at line 198 of file itkVariationalRegistrationSSDFunction.h.
Referenced by ComputeGlobalTimeStep().
|
private |
Function to compute derivatives of the warped image.
Definition at line 189 of file itkVariationalRegistrationSSDFunction.h.
|
private |
Zero update return value (zero vector).
Definition at line 201 of file itkVariationalRegistrationSSDFunction.h.