18 #ifndef __itkAdvancedMeanSquaresImageToImageMetric_h 19 #define __itkAdvancedMeanSquaresImageToImageMetric_h 23 #include "itkSmoothingRecursiveGaussianImageFilter.h" 25 #include "itkNearestNeighborInterpolateImageFunction.h" 55 template<
class TFixedImage,
class TMovingImage >
128 FixedImageType::ImageDimension );
132 MovingImageType::ImageDimension );
135 virtual MeasureType
GetValue(
const TransformParametersType & parameters )
const;
138 virtual void GetDerivative(
const TransformParametersType & parameters,
139 DerivativeType & derivative )
const;
143 MeasureType & value, DerivativeType & derivative )
const;
146 MeasureType & value, DerivativeType & derivative )
const;
149 virtual void GetSelfHessian(
const TransformParametersType & parameters, HessianType & H )
const;
152 itkSetMacro( SelfHessianSmoothingSigma,
double );
153 itkGetConstMacro( SelfHessianSmoothingSigma,
double );
156 itkSetMacro( SelfHessianNoiseRange,
double );
157 itkGetConstMacro( SelfHessianNoiseRange,
double );
160 itkSetMacro( NumberOfSamplesForSelfHessian,
unsigned int );
161 itkGetConstMacro( NumberOfSamplesForSelfHessian,
unsigned int );
167 virtual void Initialize(
void ) throw ( ExceptionObject );
176 itkSetMacro( UseNormalization,
bool );
177 itkGetConstMacro( UseNormalization,
bool );
184 itkSetMacro( UseOpenMP,
bool );
189 virtual ~AdvancedMeanSquaresImageToImageMetric(){}
191 void PrintSelf( std::ostream & os, Indent indent )
const;
208 typedef SmoothingRecursiveGaussianImageFilter<
210 typedef BSplineInterpolateImageFunction<
212 typedef NearestNeighborInterpolateImageFunction<
221 const RealType fixedImageValue,
222 const RealType movingImageValue,
223 const DerivativeType & imageJacobian,
224 const NonZeroJacobianIndicesType & nzji,
225 MeasureType & measure,
226 DerivativeType & deriv )
const;
231 const DerivativeType & imageJacobian,
232 const NonZeroJacobianIndicesType & nzji,
233 HessianType & H )
const;
240 MeasureType & value, DerivativeType & derivative )
const;
256 #ifndef ITK_MANUAL_INSTANTIATION 257 #include "itkAdvancedMeanSquaresImageToImageMetric.hxx" 260 #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