14 #ifndef __itkPatternIntensityImageToImageMetric_h
15 #define __itkPatternIntensityImageToImageMetric_h
20 #include "itkCastImageFilter.h"
21 #include "itkResampleImageFilter.h"
22 #include "itkMultiplyImageFilter.h"
23 #include "itkSubtractImageFilter.h"
24 #include "itkOptimizer.h"
25 #include "itkRescaleIntensityImageFilter.h"
40 template <
class TFixedImage,
class TMovingImage >
78 typedef typename Superclass::RealType
RealType;
110 itkStaticConstMacro( FixedImageDimension,
unsigned int,
111 FixedImageType::ImageDimension );
121 typedef itk::ResampleImageFilter<
123 typedef itk::RescaleIntensityImageFilter<
127 typedef itk::SubtractImageFilter<
131 typedef itk::MultiplyImageFilter<
137 itkStaticConstMacro( MovingImageDimension,
unsigned int,
138 MovingImageType::ImageDimension );
156 virtual void Initialize(
void ) throw ( ExceptionObject );
160 itkGetConstReferenceMacro( Scales, ScalesType );
163 itkSetMacro( NoiseConstant ,
double );
164 itkGetConstReferenceMacro( NoiseConstant,
double );
167 itkSetMacro( OptimizeNormalizationFactor ,
bool );
168 itkGetConstReferenceMacro( OptimizeNormalizationFactor,
bool );
172 virtual ~PatternIntensityImageToImageMetric() {};
173 void PrintSelf(std::ostream& os, Indent indent)
const;
176 MeasureType ComputePIFixed(
void )
const;
179 MeasureType ComputePIDiff(
const TransformParametersType ¶meters,
float scalingfactor )
const;
183 void operator=(
const Self&);
203 #ifndef ITK_MANUAL_INSTANTIATION
204 #include "itkPatternIntensityImageToImageMetric.hxx"
207 #endif // end #ifndef __itkPatternIntensityImageToImageMetric_h
Superclass::MeasureType MeasureType
SmartPointer< Self > Pointer
Superclass::FixedImageMaskType FixedImageMaskType
Superclass::TransformType TransformType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::FixedImageRegionType FixedImageRegionType
AdvancedImageToImageMetric< TFixedImage, TMovingImage > Superclass
Superclass::TransformParametersType TransformParametersType
Superclass::MovingImageType MovingImageType
MultiplyImageFilterType::Pointer m_MultiplyImageFilter
Superclass::FixedImagePixelType FixedImagePixelType
DifferenceImageFilterType::Pointer m_DifferenceImageFilter
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics...
Superclass::FixedImageLimiterOutputType FixedImageLimiterOutputType
Superclass::DerivativeType DerivativeType
Computes similarity between two objects to be registered.
Superclass::RealType RealType
Superclass::FixedImageType FixedImageType
double m_NormalizationFactor
Superclass::MovingImagePointer MovingImagePointer
RayCastInterpolatorType::Pointer RayCastInterpolatorPointer
TransformType::ScalarType ScalarType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::MovingImageMaskType MovingImageMaskType
itk::AdvancedCombinationTransform< ScalarType, FixedImageDimension > CombinationTransformType
unsigned int m_NeighborhoodRadius
itk::AdvancedRayCastInterpolateImageFunction< MovingImageType, ScalarType > RayCastInterpolatorType
bool m_OptimizeNormalizationFactor
Superclass::TransformParametersType TransformParametersType
Superclass::GradientPixelType GradientPixelType
Superclass::TransformPointer TransformPointer
Superclass::MeasureType MeasureType
RescaleIntensityImageFilterType::Pointer m_RescaleImageFilter
itk::RescaleIntensityImageFilter< TransformedMovingImageType, TransformedMovingImageType > RescaleIntensityImageFilterType
Superclass::ImageSampleContainerType ImageSampleContainerType
itk::ResampleImageFilter< MovingImageType, TransformedMovingImageType > TransformMovingImageFilterType
itk::MultiplyImageFilter< TransformedMovingImageType, TransformedMovingImageType, TransformedMovingImageType > MultiplyImageFilterType
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::GradientImageFilterPointer GradientImageFilterPointer
OptimizerType::ScalesType ScalesType
Superclass::MovingImageRegionType MovingImageRegionType
Superclass::MovingImagePixelType MovingImagePixelType
itk::Image< FixedImagePixelType, itkGetStaticConstMacro(FixedImageDimension) > TransformedMovingImageType
SmartPointer< const Self > ConstPointer
itk::SubtractImageFilter< FixedImageType, TransformedMovingImageType, TransformedMovingImageType > DifferenceImageFilterType
MeasureType m_FixedMeasure
TransformType::ScalarType ScalarType
CombinationTransformType::Pointer CombinationTransformPointer
Superclass::ParametersType ParametersType
Superclass::InterpolatorType InterpolatorType
Superclass::FixedImageType FixedImageType
CombinationTransformPointer m_CombinationTransform
Superclass::InputPointType InputPointType
Superclass::MovingImageLimiterType MovingImageLimiterType
Superclass::TransformJacobianType TransformJacobianType
Superclass::GradientImageType GradientImageType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
Projective interpolation of an image at specified positions.
Superclass::MovingImageType MovingImageType
itk::Optimizer OptimizerType
Superclass::ImageSamplerPointer ImageSamplerPointer
Superclass::GradientImageFilterType GradientImageFilterType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
Superclass::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
TransformMovingImageFilterType::Pointer m_TransformMovingImageFilter
Superclass::FixedImageLimiterType FixedImageLimiterType
Superclass::MovingImageLimiterOutputType MovingImageLimiterOutputType
FixedImageType::PixelType FixedImagePixelType
Superclass::GradientImagePointer GradientImagePointer
Superclass::ImageSamplerType ImageSamplerType
Superclass::OutputPointType OutputPointType
PatternIntensityImageToImageMetric Self
Superclass::DerivativeType DerivativeType
SmartPointer< Self > Pointer