16 #ifndef __itkAdvancedMeanSquaresImageToImageMetric_h
17 #define __itkAdvancedMeanSquaresImageToImageMetric_h
19 #include "itkSmoothingRecursiveGaussianImageFilter.h"
22 #include "itkNearestNeighborInterpolateImageFunction.h"
53 template <
class TFixedImage,
class TMovingImage >
124 FixedImageType::ImageDimension );
128 MovingImageType::ImageDimension );
145 itkSetMacro( SelfHessianSmoothingSigma,
double );
146 itkGetConstMacro( SelfHessianSmoothingSigma,
double );
149 itkSetMacro( SelfHessianNoiseRange,
double );
150 itkGetConstMacro( SelfHessianNoiseRange,
double );
153 itkSetMacro( NumberOfSamplesForSelfHessian,
unsigned int );
154 itkGetConstMacro( NumberOfSamplesForSelfHessian,
unsigned int );
160 virtual void Initialize(
void) throw ( ExceptionObject );
169 itkSetMacro( UseNormalization,
bool );
170 itkGetConstMacro( UseNormalization,
bool );
174 virtual ~AdvancedMeanSquaresImageToImageMetric() {};
175 void PrintSelf( std::ostream& os, Indent indent )
const;
192 typedef SmoothingRecursiveGaussianImageFilter<
194 typedef BSplineInterpolateImageFunction<
196 typedef NearestNeighborInterpolateImageFunction<
241 #ifndef ITK_MANUAL_INSTANTIATION
242 #include "itkAdvancedMeanSquaresImageToImageMetric.hxx"
245 #endif // end #ifndef __itkAdvancedMeanSquaresImageToImageMetric_h
Compute Mean square difference between two images, based on AdvancedImageToImageMetric...
Superclass::ParametersType ParametersType
Superclass::GradientPixelType GradientPixelType
Superclass::MeasureType MeasureType
Superclass::MovingImageLimiterType MovingImageLimiterType
Superclass::HessianValueType HessianValueType
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
DerivativeType::ValueType HessianValueType
Superclass::FixedImageMaskType FixedImageMaskType
Superclass::HessianType HessianType
Superclass::InputPointType InputPointType
Superclass::FixedImageRegionType FixedImageRegionType
void UpdateValueAndDerivativeTerms(const RealType fixedImageValue, const RealType movingImageValue, const DerivativeType &imageJacobian, const NonZeroJacobianIndicesType &nzji, MeasureType &measure, DerivativeType &deriv) const
Superclass::CoordinateRepresentationType CoordinateRepresentationType
Superclass::TransformParametersType TransformParametersType
Superclass::MovingImageRegionType MovingImageRegionType
Superclass::ImageSampleContainerType ImageSampleContainerType
Superclass::MovingImageType MovingImageType
void UpdateSelfHessianTerms(const DerivativeType &imageJacobian, const NonZeroJacobianIndicesType &nzji, HessianType &H) const
Superclass::GradientImagePointer GradientImagePointer
Superclass::MeasureType MeasureType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::FixedImageLimiterOutputType FixedImageLimiterOutputType
Superclass::OutputPointType OutputPointType
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics...
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
Superclass::FixedImageIndexValueType FixedImageIndexValueType
Superclass::GradientPixelType GradientPixelType
Superclass::InputPointType InputPointType
FixedImageLimiterType::OutputType FixedImageLimiterOutputType
Superclass::TransformType TransformType
Superclass::TransformType TransformType
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::FixedImageRegionType FixedImageRegionType
AdvancedImageToImageMetric< TFixedImage, TMovingImage > Superclass
Superclass::FixedImageIndexType FixedImageIndexType
ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
MovingImageType::IndexType MovingImageIndexType
Superclass::MovingImageContinuousIndexType MovingImageContinuousIndexType
InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
TransformType::InputPointType FixedImagePointType
Superclass::GradientImageType GradientImageType
Superclass::RealType RealType
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::ParametersType ParametersType
double m_NormalizationFactor
ImageSamplerBase< FixedImageType > ImageSamplerType
virtual MeasureType GetValue(const TransformParametersType ¶meters) const
AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::FixedImagePixelType FixedImagePixelType
Superclass::MovingImageLimiterOutputType MovingImageLimiterOutputType
Superclass::InterpolatorType InterpolatorType
Superclass::InterpolatorPointer InterpolatorPointer
SmartPointer< const Self > ConstPointer
FixedImageType::IndexType FixedImageIndexType
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
vnl_sparse_matrix< HessianValueType > HessianType
ImageGridSampler< FixedImageType > SelfHessianSamplerType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::FixedImageLimiterType FixedImageLimiterType
Superclass::ImageSamplerType ImageSamplerType
virtual void GetValueAndDerivative(const TransformParametersType ¶meters, MeasureType &Value, DerivativeType &Derivative) const
Superclass::MovingImageType MovingImageType
AdvancedMeanSquaresImageToImageMetric()
FixedArray< double, itkGetStaticConstMacro(MovingImageDimension) > MovingImageDerivativeScalesType
FixedImageIndexType::IndexValueType FixedImageIndexValueType
void EvaluateTransformJacobianInnerProduct(const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const
TransformType::OutputPointType MovingImagePointType
Superclass::FixedImageType FixedImageType
LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::GradientImageType GradientImageType
Superclass::TransformPointer TransformPointer
Superclass::TransformParametersType TransformParametersType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
virtual void GetSelfHessian(const TransformParametersType ¶meters, HessianType &H) const
Superclass::GradientImageFilterType GradientImageFilterType
ImageSamplerType::Pointer ImageSamplerPointer
MovingImageType::RegionType MovingImageRegionType
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
Superclass::InterpolatorType InterpolatorType
Superclass::TransformJacobianType TransformJacobianType
Superclass::TransformPointer TransformPointer
Superclass::CentralDifferenceGradientFilterType CentralDifferenceGradientFilterType
GradientImageFilter< MovingImageType, RealType, RealType > CentralDifferenceGradientFilterType
Superclass::FixedImageType FixedImageType
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::TransformJacobianType TransformJacobianType
NearestNeighborInterpolateImageFunction< FixedImageType, CoordinateRepresentationType > DummyFixedImageInterpolatorType
Superclass::MovingImagePixelType MovingImagePixelType
Superclass::MovingImagePixelType MovingImagePixelType
Superclass::MovingImagePointType MovingImagePointType
Superclass::RealType RealType
Superclass::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
SmoothingRecursiveGaussianImageFilter< FixedImageType, FixedImageType > SmootherType
MovingImageLimiterType::OutputType MovingImageLimiterOutputType
unsigned int m_NumberOfSamplesForSelfHessian
BSplineInterpolateImageFunction< FixedImageType, CoordinateRepresentationType > FixedImageInterpolatorType
double m_SelfHessianSmoothingSigma
Superclass::MovingImageDerivativeType MovingImageDerivativeType
Superclass::InterpolatorPointer InterpolatorPointer
LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
Superclass::MovingImageIndexType MovingImageIndexType
FixedImageType::PixelType FixedImagePixelType
SmartPointer< Self > Pointer
virtual void Initialize(void)
ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
Superclass::FixedImageMaskType FixedImageMaskType
void operator=(const Self &)
Superclass::ImageSamplerPointer ImageSamplerPointer
Superclass::DerivativeType DerivativeType
AdvancedMeanSquaresImageToImageMetric Self
Superclass::GradientImageFilterType GradientImageFilterType
double m_SelfHessianNoiseRange
Superclass::FixedImagePointType FixedImagePointType
Superclass::OutputPointType OutputPointType
Superclass::BSplineInterpolatorType BSplineInterpolatorType
BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
Samples image voxels on a regular grid.
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::DerivativeType DerivativeType
virtual void GetDerivative(const TransformParametersType ¶meters, DerivativeType &derivative) const
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::GradientImagePointer GradientImagePointer