18#ifndef itkAdvancedMeanSquaresImageToImageMetric_h
19#define itkAdvancedMeanSquaresImageToImageMetric_h
51template <
typename TFixedImage,
typename TMovingImage>
71 using typename Superclass::CoordinateRepresentationType;
72 using typename Superclass::MovingImageType;
73 using typename Superclass::MovingImagePixelType;
74 using typename Superclass::MovingImageConstPointer;
75 using typename Superclass::FixedImageType;
76 using typename Superclass::FixedImageConstPointer;
77 using typename Superclass::FixedImageRegionType;
78 using typename Superclass::TransformType;
79 using typename Superclass::TransformPointer;
80 using typename Superclass::InputPointType;
81 using typename Superclass::OutputPointType;
82 using typename Superclass::TransformJacobianType;
84 using typename Superclass::InterpolatorType;
85 using typename Superclass::InterpolatorPointer;
86 using typename Superclass::RealType;
87 using typename Superclass::GradientPixelType;
88 using typename Superclass::GradientImageType;
89 using typename Superclass::GradientImagePointer;
94 using typename Superclass::MeasureType;
95 using typename Superclass::DerivativeType;
97 using typename Superclass::ParametersType;
122 GetValue(
const ParametersType & parameters)
const override;
126 GetDerivative(
const ParametersType & parameters, DerivativeType & derivative)
const override;
132 DerivativeType & derivative)
const;
137 DerivativeType & derivative)
const override;
153 itkSetMacro(UseNormalization,
bool);
154 itkGetConstMacro(UseNormalization,
bool);
161 PrintSelf(std::ostream & os, Indent indent)
const override;
180 const RealType movingImageValue,
181 const DerivativeType & imageJacobian,
183 MeasureType & measure,
184 DerivativeType & deriv)
const;
209#ifndef ITK_MANUAL_INSTANTIATION
210# include "itkAdvancedMeanSquaresImageToImageMetric.hxx"
typename TransformType::OutputPointType MovingImagePointType
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
typename MovingImageType::RegionType MovingImageRegionType
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
typename FixedImageType::PixelType FixedImagePixelType
typename DerivativeType::ValueType DerivativeValueType
typename FixedImageIndexType::IndexValueType FixedImageIndexValueType
typename MovingImageType::IndexType MovingImageIndexType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
ImageMaskSpatialObject< Self::FixedImageDimension > FixedImageMaskType
typename FixedImageType::IndexType FixedImageIndexType
SmartPointer< MovingImageMaskType > MovingImageMaskPointer
LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
AdvancedImageToImageMetric()
ImageSamplerBase< FixedImageType > ImageSamplerType
MultiThreaderBase::WorkUnitInfo ThreadInfoType
typename BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
typename MovingImageLimiterType::OutputType MovingImageLimiterOutputType
typename TransformType::InputPointType FixedImagePointType
typename FixedImageLimiterType::OutputType FixedImageLimiterOutputType
SmartPointer< FixedImageMaskType > FixedImageMaskPointer
typename ImageSamplerType::Pointer ImageSamplerPointer
typename InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
typename AdvancedTransformType::NumberOfParametersType NumberOfParametersType
ImageMaskSpatialObject< Self::MovingImageDimension > MovingImageMaskType
virtual MeasureType GetValueSingleThreaded(const ParametersType ¶meters) const
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
void ThreadedGetValue(ThreadIdType threadID) const override
itkOverrideGetNameOfClassMacro(AdvancedMeanSquaresImageToImageMetric)
void AfterThreadedGetValue(MeasureType &value) const override
SmartPointer< Self > Pointer
void GetDerivative(const ParametersType ¶meters, DerivativeType &derivative) const override
MeasureType GetValue(const ParametersType ¶meters) const override
void AfterThreadedGetValueAndDerivative(MeasureType &value, DerivativeType &derivative) const override
void ThreadedGetValueAndDerivative(ThreadIdType threadID) const override
~AdvancedMeanSquaresImageToImageMetric() override=default
AdvancedMeanSquaresImageToImageMetric()
void Initialize() override
AdvancedImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType > Superclass
double m_NormalizationFactor
ITK_DISALLOW_COPY_AND_MOVE(AdvancedMeanSquaresImageToImageMetric)
void PrintSelf(std::ostream &os, Indent indent) const override
AdvancedMeanSquaresImageToImageMetric Self
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
void GetValueAndDerivative(const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const override
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
void UpdateValueAndDerivativeTerms(const RealType fixedImageValue, const RealType movingImageValue, const DerivativeType &imageJacobian, const NonZeroJacobianIndicesType &nzji, MeasureType &measure, DerivativeType &deriv) const
SmartPointer< const Self > ConstPointer
void GetValueAndDerivativeSingleThreaded(const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const