18#ifndef itkLevelSetMotionRegistrationFunction_h
19#define itkLevelSetMotionRegistrationFunction_h
54template <
typename TFixedImage,
typename TMovingImage,
typename TDisplacementField>
75 using typename Superclass::MovingImageType;
76 using typename Superclass::MovingImagePointer;
80 using typename Superclass::FixedImageType;
81 using typename Superclass::FixedImagePointer;
87 using typename Superclass::DisplacementFieldType;
88 using typename Superclass::DisplacementFieldTypePointer;
91 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
102#ifndef ITK_FUTURE_LEGACY_REMOVE
103 using CoordRepType ITK_FUTURE_DEPRECATED(
104 "ITK 6 discourages using `CoordRepType`. Please use `CoordinateType` instead!") =
CoordinateType;
123 m_MovingImageInterpolator = ptr;
130 return m_MovingImageInterpolator;
147 global->m_SumOfSquaredDifference = 0.0;
148 global->m_NumberOfPixelsProcessed = 0L;
149 global->m_SumOfSquaredChange = 0;
271 double m_GradientMagnitudeThreshold{};
274 double m_IntensityDifferenceThreshold{};
277 double m_GradientSmoothingStandardDeviations{};
282 mutable double m_Metric{};
283 mutable double m_SumOfSquaredDifference{};
285 mutable double m_RMSChange{};
286 mutable double m_SumOfSquaredChange{};
289 mutable std::mutex m_MetricCalculationMutex{};
291 bool m_UseImageSpacing{
true };
295#ifndef ITK_MANUAL_INSTANTIATION
296# include "itkLevelSetMotionRegistrationFunction.hxx"
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
A templated class holding a n-Dimensional covariant vector.
typename ImageType::PixelType PixelType
typename ConstNeighborhoodIterator< TDisplacementField >::RadiusType RadiusType
Control indentation during Print() invocation.
Base class for all image interpolators.
LevelSetMotionRegistrationFunction()
typename FixedImageType::SizeType SizeType
PixelType ComputeUpdate(const NeighborhoodType &it, void *gd, const FloatOffsetType &offset=FloatOffsetType(0.0)) override
void PrintSelf(std::ostream &os, Indent indent) const override
typename MovingImageSmoothingFilterType::Pointer MovingImageSmoothingFilterPointer
typename MovingImageType::SpacingType MovingSpacingType
bool GetUseImageSpacing() const
typename FixedImageType::SpacingType SpacingType
virtual double GetMetric() const
void InitializeIteration() override
InterpolatorType * GetMovingImageInterpolator()
void ReleaseGlobalDataPointer(void *gd) const override
virtual double GetGradientMagnitudeThreshold() const
void * GetGlobalDataPointer() const override
virtual double GetGradientSmoothingStandardDeviations() const
typename InterpolatorType::PointType PointType
virtual void SetIntensityDifferenceThreshold(double)
virtual double GetAlpha() const
virtual void SetGradientSmoothingStandardDeviations(double)
typename FixedImageType::IndexType IndexType
void SetMovingImageInterpolator(InterpolatorType *ptr)
virtual void SetAlpha(double)
virtual void SetGradientMagnitudeThreshold(double)
void SetUseImageSpacing(bool)
typename InterpolatorType::Pointer InterpolatorPointer
virtual double GetIntensityDifferenceThreshold() const
~LevelSetMotionRegistrationFunction() override=default
virtual double GetRMSChange() const
TimeStepType ComputeGlobalTimeStep(void *GlobalData) const override
Light weight base class for most itk classes.
Linearly interpolate an image at specified positions.
static constexpr T NonpositiveMin()
Computes the smoothing of an image by convolution with the Gaussian kernels implemented as IIR filter...
A templated class holding a n-Dimensional vector.
SmartPointer< Self > Pointer
ImageBaseType::IndexType IndexType
ImageBaseType::PointType PointType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
double m_SumOfSquaredChange
double m_SumOfSquaredDifference
SizeValueType m_NumberOfPixelsProcessed