#include <itkVariationalRegistrationFunction.h>
Base class for force calculation in the variational registration framework.
This class is templated over fixed image type, moving image type and deformation field type. This function has the fixed image, the moving image and the current displacement field as input and computes an update value in ComputeUpdate().
Implement a concrete force type in a subclass; overwrite the methods InitializeIteration() and ComputeUpdate().
Definition at line 52 of file itkVariationalRegistrationFunction.h.
Inheritance diagram for itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >:
Collaboration diagram for itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >:Classes | |
| struct | GlobalDataStruct |
Static Public Attributes | |
| 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 Member Functions | |
| virtual const WarpedImagePointer | GetWarpedImage () const |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| VariationalRegistrationFunction () | |
| virtual void | WarpMovingImage () |
| ~VariationalRegistrationFunction () override=default | |
Protected Member Functions inherited from itk::FiniteDifferenceFunction< TDisplacementField > | |
| FiniteDifferenceFunction () | |
| FiniteDifferenceFunction () | |
| ~FiniteDifferenceFunction () override=default | |
| ~FiniteDifferenceFunction () override=default | |
Protected Member Functions inherited from itk::LightObject | |
| virtual LightObject::Pointer | InternalClone () const |
| LightObject () | |
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
| virtual | ~LightObject () |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
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::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::ConstPointer = SmartPointer<const Self> |
Definition at line 61 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::DisplacementFieldType = TDisplacementField |
Deformation field type.
Definition at line 84 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::DisplacementFieldTypePointer = typename DisplacementFieldType::ConstPointer |
Definition at line 85 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::FixedImagePointer = typename FixedImageType::ConstPointer |
Definition at line 77 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::FixedImageType = TFixedImage |
FixedImage image type.
Definition at line 76 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::MaskImagePixelType = unsigned char |
MovingImage image type.
Definition at line 88 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::MaskImagePointer = typename MaskImageType::ConstPointer |
Definition at line 90 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::MaskImageType = Image<MaskImagePixelType, ImageDimension> |
Definition at line 89 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::MovingImagePointer = typename MovingImageType::ConstPointer |
Definition at line 73 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::MovingImageType = TMovingImage |
MovingImage image type.
Definition at line 72 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::MovingImageWarperPointer = typename MovingImageWarperType::Pointer |
Definition at line 97 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::MovingImageWarperType |
Typedef of the warp image filter.
Definition at line 95 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::Pointer = SmartPointer<Self> |
Definition at line 60 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::Self = VariationalRegistrationFunction |
Standard class type alias.
Definition at line 58 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::Superclass = FiniteDifferenceFunction<TDisplacementField> |
Definition at line 59 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::TimeStepType = typename Superclass::TimeStepType |
Definition at line 63 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::WarpedImagePointer = typename WarpedImageType::ConstPointer |
Definition at line 81 of file itkVariationalRegistrationFunction.h.
| using itk::VariationalRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >::WarpedImageType = TFixedImage |
FixedImage image type.
Definition at line 80 of file itkVariationalRegistrationFunction.h.
|
protected |
|
overrideprotecteddefault |
|
inlineoverridevirtual |
Computes the time step for an update. Returns the constant time step.
Implements itk::FiniteDifferenceFunction< TDisplacementField >.
Reimplemented in itk::VariationalRegistrationNCCFunction< TFixedImage, TMovingImage, TDisplacementField >, and itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >.
Definition at line 208 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Get the deformation field.
Definition at line 137 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Get the fixed image.
Definition at line 123 of file itkVariationalRegistrationFunction.h.
|
overridevirtual |
Return a pointer to a global data structure that is passed to this object from the solver at each calculation.
Implements itk::FiniteDifferenceFunction< TDisplacementField >.
|
inlinevirtual |
Get the MaskBackgroundThreshold. All Pixels of the mask image will be treated as background if the are <= this threshold.
Definition at line 195 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Get the mask image.
Definition at line 151 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Get the metric value. The metric value is the mean square difference in intensity between the fixed image and transforming moving image computed over the the overlapping region between the two images.
Definition at line 228 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Get the Moving image.
Definition at line 109 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Get the moving image warper.
Definition at line 165 of file itkVariationalRegistrationFunction.h.
|
virtual |
Run-time type information (and related methods)
Reimplemented from itk::FiniteDifferenceFunction< TDisplacementField >.
Reimplemented in itk::VariationalRegistrationDemonsFunction< TFixedImage, TMovingImage, TDisplacementField >, itk::VariationalRegistrationDemonsFunction< FixedImageType, MovingImageType, DisplacementFieldType >, itk::VariationalRegistrationDemonsFunction< FixedImageType, MovingImageType, DisplacementFieldType >, itk::VariationalRegistrationFastNCCFunction< TFixedImage, TMovingImage, TDisplacementField >, itk::VariationalRegistrationNCCFunction< TFixedImage, TMovingImage, TDisplacementField >, and itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >.
|
inlinevirtual |
Get the rms change in deformation field.
Definition at line 235 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Get the time step.
Definition at line 179 of file itkVariationalRegistrationFunction.h.
Referenced by itk::VariationalRegistrationNCCFunction< TFixedImage, TMovingImage, TDisplacementField >::ComputeGlobalTimeStep(), and itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >::ComputeGlobalTimeStep().
|
protectedvirtual |
Get the warped image.
|
overridevirtual |
Set the object's state before each iteration.
Reimplemented from itk::FiniteDifferenceFunction< TDisplacementField >.
Reimplemented in itk::VariationalRegistrationNCCFunction< TFixedImage, TMovingImage, TDisplacementField >, and itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >.
|
overrideprotectedvirtual |
Print information about the filter.
Reimplemented from itk::FiniteDifferenceFunction< TDisplacementField >.
Reimplemented in itk::VariationalRegistrationNCCFunction< TFixedImage, TMovingImage, TDisplacementField >, and itk::VariationalRegistrationSSDFunction< TFixedImage, TMovingImage, TDisplacementField >.
|
overridevirtual |
Release memory for global data structure.
Implements itk::FiniteDifferenceFunction< TDisplacementField >.
|
inlinevirtual |
Set the deformation field.
Definition at line 130 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Set the fixed image.
Definition at line 116 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Set the MaskBackgroundThreshold. All Pixels of the mask image will be treated as background if the are <= this threshold.
Definition at line 187 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Set the mask image.
Definition at line 144 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Set the Moving image.
Definition at line 102 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Set the moving image warper.
Definition at line 158 of file itkVariationalRegistrationFunction.h.
|
inlinevirtual |
Set the time step. This time step will be used by ComputeGlobalTimeStep().
Definition at line 172 of file itkVariationalRegistrationFunction.h.
|
protectedvirtual |
Warp the moving image into the domain of the fixed image using the deformation field.
|
staticconstexpr |
Get image dimension.
Definition at line 69 of file itkVariationalRegistrationFunction.h.
|
private |
The deformation field.
Definition at line 274 of file itkVariationalRegistrationFunction.h.
|
private |
The fixed image.
Definition at line 271 of file itkVariationalRegistrationFunction.h.
|
private |
Threshold to define the background in the mask image.
Definition at line 286 of file itkVariationalRegistrationFunction.h.
|
private |
The deformation field.
Definition at line 277 of file itkVariationalRegistrationFunction.h.
|
mutableprivate |
The metric value is the mean square difference in intensity between the fixed image and transforming moving image computed over the the overlapping region between the two images.
Definition at line 291 of file itkVariationalRegistrationFunction.h.
|
mutableprivate |
Mutex lock to protect modification to metric.
Definition at line 298 of file itkVariationalRegistrationFunction.h.
|
private |
The Moving image.
Definition at line 268 of file itkVariationalRegistrationFunction.h.
|
private |
A class to warp the moving image into the domain of the fixed image.
Definition at line 280 of file itkVariationalRegistrationFunction.h.
|
mutableprivate |
Definition at line 293 of file itkVariationalRegistrationFunction.h.
|
mutableprivate |
Definition at line 294 of file itkVariationalRegistrationFunction.h.
|
mutableprivate |
Definition at line 292 of file itkVariationalRegistrationFunction.h.
|
mutableprivate |
Definition at line 295 of file itkVariationalRegistrationFunction.h.
|
private |
The global timestep.
Definition at line 283 of file itkVariationalRegistrationFunction.h.