18#ifndef itkGradientDifferenceImageToImageMetric_h
19#define itkGradientDifferenceImageToImageMetric_h
57template <
typename TFixedImage,
typename TMovingImage>
77 using typename Superclass::RealType;
78 using typename Superclass::TransformType;
79 using typename Superclass::TransformPointer;
80 using typename Superclass::TransformParametersType;
81 using typename Superclass::TransformJacobianType;
83 using typename Superclass::MeasureType;
84 using typename Superclass::DerivativeType;
85 using typename Superclass::FixedImageType;
86 using typename Superclass::MovingImageType;
87 using typename Superclass::FixedImageConstPointer;
88 using typename Superclass::MovingImageConstPointer;
93 static constexpr unsigned int FixedImageDimension = TFixedImage::ImageDimension;
110 static constexpr unsigned int MovedImageDimension = MovingImageType::ImageDimension;
139 itkSetMacro(DerivativeDelta,
double);
140 itkGetConstReferenceMacro(DerivativeDelta,
double);
197 double m_DerivativeDelta{};
201#ifndef ITK_MANUAL_INSTANTIATION
202# include "itkGradientDifferenceImageToImageMetric.hxx"
Array class with size defined at construction time.
Casts input pixels to output pixel type.
Computes similarity between two objects to be registered.
void Initialize() override
typename TFixedImage::PixelType FixedImagePixelType
GradientDifferenceImageToImageMetric()
~GradientDifferenceImageToImageMetric() override=default
typename TMovingImage::PixelType MovedImagePixelType
typename CastFixedImageFilterType::Pointer CastFixedImageFilterPointer
void PrintSelf(std::ostream &os, Indent indent) const override
void ComputeMovedGradientRange() const
typename MovedGradientImageType::PixelType MovedGradientPixelType
void GetDerivative(const TransformParametersType ¶meters, DerivativeType &derivative) const override
MeasureType GetValue(const TransformParametersType ¶meters) const override
MeasureType ComputeMeasure(const TransformParametersType ¶meters, const double *subtractionFactor) const
typename CastMovedImageFilterType::Pointer CastMovedImageFilterPointer
typename FixedGradientImageType::PixelType FixedGradientPixelType
void ComputeVariance() const
void GetValueAndDerivative(const TransformParametersType ¶meters, MeasureType &Value, DerivativeType &Derivative) const override
Computes similarity between regions of two images.
typename TransformType::ParametersType TransformParametersType
Templated n-dimensional image class.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Applies a single NeighborhoodOperator to an image region.
Resample an image via a coordinate transform.
A function object that determines a neighborhood of values at an image boundary according to a Neuman...
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....