![]() |
Orfeo Toolbox
3.16
|
#include <itkNCCRegistrationFunction.h>
Inheritance diagram for itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >:
Collaboration diagram for itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >:Classes | |
| struct | GlobalDataStruct |
Static Public Member Functions | |
| static void | BreakOnError () |
| static Pointer | New () |
Static Public Attributes | |
| static const unsigned int | ImageDimension = Superclass::ImageDimension |
Protected Types | |
| typedef ConstNeighborhoodIterator < FixedImageType > | FixedImageNeighborhoodIteratorType |
| typedef int | InternalReferenceCountType |
Protected Member Functions | |
| NCCRegistrationFunction () | |
| ~NCCRegistrationFunction () | |
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| void | PrintSelf (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
Private Member Functions | |
| NCCRegistrationFunction (const Self &) | |
| void | operator= (const Self &) |
This class encapsulate the PDE which drives the demons registration algorithm. It is used by NCCRegistrationFilter to compute the output deformation field which will map a moving image onto a a fixed image.
Non-integer moving image values are obtained by using interpolation. The default interpolator is of type LinearInterpolateImageFunction. The user may set other interpolators via method SetMovingImageInterpolator. Note that the input interpolator must derive from baseclass InterpolateImageFunction.
This class is templated over the fixed image type, moving image type, and the deformation field type.
Definition at line 53 of file itkNCCRegistrationFunction.h.
| typedef SmartPointer<const Self> itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::ConstPointer |
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 63 of file itkNCCRegistrationFunction.h.
| typedef double itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::CoordRepType |
Interpolator type.
Definition at line 100 of file itkNCCRegistrationFunction.h.
| typedef CovariantVector<double,itkGetStaticConstMacro(ImageDimension)> itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::CovariantVectorType |
Covariant vector type.
Definition at line 109 of file itkNCCRegistrationFunction.h.
|
inherited |
The default boundary condition for finite difference functions that is used unless overridden in the Evaluate() method.
Definition at line 91 of file itkFiniteDifferenceFunction.h.
| typedef LinearInterpolateImageFunction<MovingImageType,CoordRepType> itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::DefaultInterpolatorType |
Definition at line 106 of file itkNCCRegistrationFunction.h.
| typedef Superclass::DeformationFieldType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::DeformationFieldType |
Deformation field type.
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 84 of file itkNCCRegistrationFunction.h.
| typedef Superclass::DeformationFieldTypePointer itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::DeformationFieldTypePointer |
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 86 of file itkNCCRegistrationFunction.h.
|
protected |
FixedImage image neighborhood iterator type.
Definition at line 154 of file itkNCCRegistrationFunction.h.
| typedef Superclass::FixedImagePointer itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::FixedImagePointer |
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 78 of file itkNCCRegistrationFunction.h.
| typedef Superclass::FixedImageType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::FixedImageType |
FixedImage image type.
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 77 of file itkNCCRegistrationFunction.h.
| typedef Superclass::FloatOffsetType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::FloatOffsetType |
A floating point offset from an image grid location. Used for interpolation among grid values in a neighborhood.
Reimplemented from itk::FiniteDifferenceFunction< TDeformationField >.
Definition at line 96 of file itkNCCRegistrationFunction.h.
| typedef GradientCalculatorType::Pointer itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::GradientCalculatorPointer |
Definition at line 113 of file itkNCCRegistrationFunction.h.
| typedef CentralDifferenceImageFunction<FixedImageType> itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::GradientCalculatorType |
Gradient calculator type.
Definition at line 112 of file itkNCCRegistrationFunction.h.
|
inherited |
Extract some parameters from the image type
Definition at line 75 of file itkFiniteDifferenceFunction.h.
| typedef FixedImageType::IndexType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::IndexType |
Definition at line 79 of file itkNCCRegistrationFunction.h.
|
protectedinherited |
Define the type of the reference count according to the target. This allows the use of atomic operations
Definition at line 137 of file itkLightObject.h.
| typedef InterpolatorType::Pointer itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::InterpolatorPointer |
Definition at line 103 of file itkNCCRegistrationFunction.h.
| typedef InterpolateImageFunction<MovingImageType,CoordRepType> itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::InterpolatorType |
Definition at line 101 of file itkNCCRegistrationFunction.h.
| typedef Superclass::MovingImagePointer itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::MovingImagePointer |
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 74 of file itkNCCRegistrationFunction.h.
| typedef Superclass::MovingImageType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::MovingImageType |
MovingImage image type.
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 70 of file itkNCCRegistrationFunction.h.
|
inherited |
The type of data structure that holds the scales with which the neighborhood is weighted to properly account for spacing and neighborhood radius.
Definition at line 102 of file itkFiniteDifferenceFunction.h.
| typedef Superclass::NeighborhoodType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::NeighborhoodType |
The type of data structure that is passed to this function object to evaluate at a pixel that does not lie on a data set boundary.
Reimplemented from itk::FiniteDifferenceFunction< TDeformationField >.
Definition at line 94 of file itkNCCRegistrationFunction.h.
|
inherited |
Definition at line 80 of file itkFiniteDifferenceFunction.h.
| typedef Superclass::PixelType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::PixelType |
Inherit some enums from the superclass.
Reimplemented from itk::FiniteDifferenceFunction< TDeformationField >.
Definition at line 92 of file itkNCCRegistrationFunction.h.
| typedef SmartPointer<Self> itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::Pointer |
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 62 of file itkNCCRegistrationFunction.h.
| typedef InterpolatorType::PointType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::PointType |
Definition at line 104 of file itkNCCRegistrationFunction.h.
| typedef Superclass::RadiusType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::RadiusType |
Neighborhood radius type
Reimplemented from itk::FiniteDifferenceFunction< TDeformationField >.
Definition at line 93 of file itkNCCRegistrationFunction.h.
| typedef NCCRegistrationFunction itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::Self |
Standard class typedefs.
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 59 of file itkNCCRegistrationFunction.h.
| typedef FixedImageType::SizeType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::SizeType |
Definition at line 80 of file itkNCCRegistrationFunction.h.
| typedef FixedImageType::SpacingType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::SpacingType |
Definition at line 81 of file itkNCCRegistrationFunction.h.
| typedef PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField > itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::Superclass |
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 61 of file itkNCCRegistrationFunction.h.
| typedef Superclass::TimeStepType itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::TimeStepType |
Define the TimeStepType to always be double.
Reimplemented from itk::FiniteDifferenceFunction< TDeformationField >.
Definition at line 97 of file itkNCCRegistrationFunction.h.
|
protected |
Default constructor
Definition at line 31 of file itkNCCRegistrationFunction.txx.
References itk::SmartPointer< TObjectType >::GetPointer(), and NULL.
|
inlineprotected |
Definition at line 150 of file itkNCCRegistrationFunction.h.
|
private |
|
staticinherited |
This method is called when itkExceptionMacro executes. It allows the debugger to break on error.
Definition at line 149 of file itkLightObject.cxx.
|
inlinevirtual |
This class uses a constant timestep of 1.
Implements itk::FiniteDifferenceFunction< TDeformationField >.
Definition at line 124 of file itkNCCRegistrationFunction.h.
|
inherited |
Compute the scales that weight the neighborhood during difference operations to properly account for spacing and neighborhood radius
|
virtual |
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< TDeformationField >.
Definition at line 120 of file itkNCCRegistrationFunction.txx.
References itk::FixedArray< TValueType, VLength >::Fill(), itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::GetIndex(), itk::Neighborhood< TPixel, VDimension, TAllocator >::GetRadius(), itk::Size< VDimension >::GetSize(), and itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::SetLocation().
|
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.
|
virtualinherited |
Delete an itk object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting.
Delete a itk object. This method should always be used to delete an object when the new operator was used to create it. Using the C++ delete method will not work with reference counting.
Definition at line 88 of file itkLightObject.cxx.
|
inlineinherited |
Get the deformation field. This function should have been declared const. It is not for backward compatibility reasons.
Definition at line 88 of file itkPDEDeformableRegistrationFunction.h.
|
inlineinherited |
Definition at line 92 of file itkPDEDeformableRegistrationFunction.h.
Referenced by otb::NCCRegistrationFilter< TFixedImage, TMovingImage, TDeformationField >::GetMetric().
|
inlineinherited |
Get the fixed image.
Definition at line 79 of file itkPDEDeformableRegistrationFunction.h.
|
inlinevirtual |
Return a pointer to a global data structure that is passed to this object from the solver at each calculation.
Implements itk::FiniteDifferenceFunction< TDeformationField >.
Definition at line 129 of file itkNCCRegistrationFunction.h.
|
inlineinherited |
Definition at line 94 of file itkPDEDeformableRegistrationFunction.h.
|
inlineinherited |
Get the moving image.
Definition at line 71 of file itkPDEDeformableRegistrationFunction.h.
|
inline |
Get the moving image interpolator.
Definition at line 120 of file itkNCCRegistrationFunction.h.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
|
inlineinherited |
Definition at line 96 of file itkPDEDeformableRegistrationFunction.h.
|
inlineinherited |
Returns the radius of the neighborhood this FiniteDifferenceFunction needs to perform its calculations.
Definition at line 145 of file itkFiniteDifferenceFunction.h.
|
inlinevirtualinherited |
Gets the reference count on this object.
Definition at line 105 of file itkLightObject.h.
|
virtual |
Set the object's state before each iteration.
Reimplemented from itk::FiniteDifferenceFunction< TDeformationField >.
Definition at line 90 of file itkNCCRegistrationFunction.txx.
|
static |
Method for creation through the object factory.
Reimplemented from itk::LightObject.
|
private |
|
inherited |
Cause the object to print itself out.
Avoid DLL boundary problems. This function will be common to all itk objects. It just calls the header/self/trailer virtual print methods, which can be overriden by subclasses (any itk object).
Definition at line 135 of file itkLightObject.cxx.
References itk::Indent::GetNextIndent().
Referenced by itk::operator<<().
|
protectedvirtualinherited |
Define a default print header for all objects.
Definition at line 320 of file itkLightObject.cxx.
|
protectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Chaining method to print an object's instance variables, as well as its superclasses.
Reimplemented from itk::PDEDeformableRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >.
Definition at line 67 of file itkNCCRegistrationFunction.txx.
|
protectedvirtualinherited |
Define a default print trailer for all objects.
Definition at line 331 of file itkLightObject.cxx.
|
virtualinherited |
Increase the reference count (mark as used by another object).
Reimplemented in itk::ExceptionObject::ReferenceCountedExceptionData, and itk::Object.
Definition at line 160 of file itkLightObject.cxx.
|
inlinevirtual |
Release memory for global data structure.
Implements itk::FiniteDifferenceFunction< TDeformationField >.
Definition at line 136 of file itkNCCRegistrationFunction.h.
|
inlineinherited |
Set the deformation field image.
Definition at line 83 of file itkPDEDeformableRegistrationFunction.h.
Referenced by itk::SymmetricForcesDemonsRegistrationFilter< TFixedImage, TMovingImage, TDeformationField >::InitializeIteration(), itk::FastSymmetricForcesDemonsRegistrationFilter< TFixedImage, TMovingImage, TDeformationField >::InitializeIteration(), and itk::DiffeomorphicDemonsRegistrationFilter< TFixedImage, TMovingImage, TDeformationField >::InitializeIteration().
|
inlineinherited |
Definition at line 91 of file itkPDEDeformableRegistrationFunction.h.
|
inlineinherited |
Set the fixed image.
Definition at line 75 of file itkPDEDeformableRegistrationFunction.h.
Referenced by itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDeformationField >::InitializeIteration(), and itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >::SetDifferenceFunction().
|
inlineinherited |
Definition at line 93 of file itkPDEDeformableRegistrationFunction.h.
|
inlineinherited |
Set the moving image.
Definition at line 67 of file itkPDEDeformableRegistrationFunction.h.
Referenced by itk::PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDeformationField >::InitializeIteration().
|
inline |
Set the moving image interpolator.
Definition at line 116 of file itkNCCRegistrationFunction.h.
|
inlineinherited |
Definition at line 95 of file itkPDEDeformableRegistrationFunction.h.
|
inlineinherited |
Sets the radius of the neighborhood this FiniteDifferenceFunction needs to perform its calculations.
Definition at line 140 of file itkFiniteDifferenceFunction.h.
|
virtualinherited |
Sets the reference count on this object. This is a dangerous method, use it with care.
Sets the reference count (use with care)
Reimplemented in itk::Object.
Definition at line 244 of file itkLightObject.cxx.
|
inlineinherited |
Set the ScaleCoefficients for the difference operators. The defaults a 1.0. These can be set to take the image spacing into account.
Definition at line 151 of file itkFiniteDifferenceFunction.h.
|
virtualinherited |
Decrease the reference count (release by another object).
Reimplemented in itk::ExceptionObject::ReferenceCountedExceptionData, and itk::Object.
Definition at line 192 of file itkLightObject.cxx.
Referenced by itk::LightObject::New().
|
static |
Inherit some enums from the superclass.
Reimplemented from itk::FiniteDifferenceFunction< TDeformationField >.
Definition at line 89 of file itkNCCRegistrationFunction.h.
|
protectedinherited |
The deformation field.
Definition at line 128 of file itkPDEDeformableRegistrationFunction.h.
|
private |
Threshold below which the denominator term is considered zero.
Definition at line 181 of file itkNCCRegistrationFunction.h.
|
mutableprotectedinherited |
Definition at line 130 of file itkPDEDeformableRegistrationFunction.h.
|
protectedinherited |
The fixed image.
Definition at line 125 of file itkPDEDeformableRegistrationFunction.h.
|
private |
Function to compute derivatives of the fixed image.
Definition at line 171 of file itkNCCRegistrationFunction.h.
|
private |
Cache fixed image information.
Definition at line 168 of file itkNCCRegistrationFunction.h.
|
mutableprotectedinherited |
Definition at line 132 of file itkPDEDeformableRegistrationFunction.h.
|
private |
Threshold below which two intensity value are assumed to match.
Definition at line 184 of file itkNCCRegistrationFunction.h.
|
mutableprivate |
Definition at line 186 of file itkNCCRegistrationFunction.h.
|
protectedinherited |
The moving image.
Definition at line 122 of file itkPDEDeformableRegistrationFunction.h.
|
private |
Function to interpolate the moving image.
Definition at line 175 of file itkNCCRegistrationFunction.h.
|
protectedinherited |
Definition at line 131 of file itkPDEDeformableRegistrationFunction.h.
|
protectedinherited |
Definition at line 201 of file itkFiniteDifferenceFunction.h.
|
mutableprotectedinherited |
Number of uses of this object by other objects.
Definition at line 141 of file itkLightObject.h.
|
mutableprotectedinherited |
Mutex lock to protect modification to the reference count
Definition at line 144 of file itkLightObject.h.
|
protectedinherited |
Definition at line 202 of file itkFiniteDifferenceFunction.h.
|
private |
The global timestep.
Definition at line 178 of file itkNCCRegistrationFunction.h.