14 #ifndef __itkAdvancedMeanSquaresImageToImageMetric_h
15 #define __itkAdvancedMeanSquaresImageToImageMetric_h
19 #include "itkSmoothingRecursiveGaussianImageFilter.h"
21 #include "itkNearestNeighborInterpolateImageFunction.h"
51 template<
class TFixedImage,
class TMovingImage >
124 FixedImageType::ImageDimension );
128 MovingImageType::ImageDimension );
148 itkSetMacro( SelfHessianSmoothingSigma,
double );
149 itkGetConstMacro( SelfHessianSmoothingSigma,
double );
152 itkSetMacro( SelfHessianNoiseRange,
double );
153 itkGetConstMacro( SelfHessianNoiseRange,
double );
156 itkSetMacro( NumberOfSamplesForSelfHessian,
unsigned int );
157 itkGetConstMacro( NumberOfSamplesForSelfHessian,
unsigned int );
163 virtual void Initialize(
void ) throw ( ExceptionObject );
172 itkSetMacro( UseNormalization,
bool );
173 itkGetConstMacro( UseNormalization,
bool );
180 itkSetMacro( UseOpenMP,
bool );
185 virtual ~AdvancedMeanSquaresImageToImageMetric(){}
187 void PrintSelf( std::ostream & os, Indent indent )
const;
204 typedef SmoothingRecursiveGaussianImageFilter<
206 typedef BSplineInterpolateImageFunction<
208 typedef NearestNeighborInterpolateImageFunction<
252 #ifndef ITK_MANUAL_INSTANTIATION
253 #include "itkAdvancedMeanSquaresImageToImageMetric.hxx"
256 #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
AdvancedTransformType::NumberOfParametersType NumberOfParametersType
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
LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
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...
Superclass::FixedImageIndexValueType FixedImageIndexValueType
Superclass::GradientPixelType GradientPixelType
Superclass::InputPointType InputPointType
FixedImageLimiterType::OutputType FixedImageLimiterOutputType
Superclass::NumberOfParametersType NumberOfParametersType
Superclass::TransformType TransformType
Superclass::TransformType TransformType
void PrintSelf(std::ostream &os, Indent indent) const
void AfterThreadedGetValueAndDerivative(MeasureType &value, DerivativeType &derivative) const
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::FixedImageRegionType FixedImageRegionType
AdvancedImageToImageMetric< TFixedImage, TMovingImage > Superclass
Superclass::FixedImageIndexType FixedImageIndexType
ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
MovingImageType::IndexType MovingImageIndexType
itk::MultiThreader ThreaderType
SmartPointer< Self > Pointer
Superclass::MovingImageContinuousIndexType MovingImageContinuousIndexType
InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
Superclass::DerivativeValueType DerivativeValueType
TransformType::InputPointType FixedImagePointType
Superclass::ThreadInfoType ThreadInfoType
Superclass::GradientImageType GradientImageType
Superclass::RealType RealType
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::ParametersType ParametersType
FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
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
FixedImageType::IndexType FixedImageIndexType
BSplineInterpolateImageFunction< FixedImageType, CoordinateRepresentationType > FixedImageInterpolatorType
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::ThreaderType ThreaderType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::FixedImageLimiterType FixedImageLimiterType
Superclass::ImageSamplerType ImageSamplerType
Superclass::MovingImageType MovingImageType
AdvancedMeanSquaresImageToImageMetric()
FixedImageIndexType::IndexValueType FixedImageIndexValueType
TransformType::OutputPointType MovingImagePointType
Superclass::FixedImageType FixedImageType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::MovingImageConstPointer MovingImageConstPointer
LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
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
void GetValueAndDerivativeSingleThreaded(const TransformParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const
Superclass::FixedImageType FixedImageType
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::TransformJacobianType TransformJacobianType
NearestNeighborInterpolateImageFunction< FixedImageType, CoordinateRepresentationType > DummyFixedImageInterpolatorType
Superclass::MovingImagePixelType MovingImagePixelType
GradientImageFilter< MovingImageType, RealType, RealType > CentralDifferenceGradientFilterType
Superclass::MovingImagePixelType MovingImagePixelType
Superclass::MovingImagePointType MovingImagePointType
Superclass::RealType RealType
virtual void GetValueAndDerivative(const TransformParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const
SmartPointer< const Self > ConstPointer
ImageGridSampler< FixedImageType > SelfHessianSamplerType
DerivativeType::ValueType DerivativeValueType
Superclass::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
SmoothingRecursiveGaussianImageFilter< FixedImageType, FixedImageType > SmootherType
MovingImageLimiterType::OutputType MovingImageLimiterOutputType
unsigned int m_NumberOfSamplesForSelfHessian
double m_SelfHessianSmoothingSigma
ThreaderType::ThreadInfoStruct ThreadInfoType
Superclass::MovingImageDerivativeType MovingImageDerivativeType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::MovingImageIndexType MovingImageIndexType
FixedImageType::PixelType FixedImagePixelType
virtual void Initialize(void)
ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
Superclass::FixedImageMaskType FixedImageMaskType
void ThreadedGetValueAndDerivative(ThreadIdType threadID)
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
vnl_sparse_matrix< HessianValueType > HessianType
Superclass::GradientImagePointer GradientImagePointer