14 #ifndef __itkPatternIntensityImageToImageMetric_h
15 #define __itkPatternIntensityImageToImageMetric_h
20 #include "itkCastImageFilter.h"
21 #include "itkResampleImageFilter.h"
22 #include "itkMultiplyByConstantImageFilter.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::MultiplyByConstantImageFilter<
136 itkStaticConstMacro( MovingImageDimension,
unsigned int,
137 MovingImageType::ImageDimension );
155 virtual void Initialize(
void) throw ( ExceptionObject );
159 itkGetConstReferenceMacro( Scales, ScalesType );
162 itkSetMacro( NoiseConstant ,
double );
163 itkGetConstReferenceMacro( NoiseConstant,
double );
166 itkSetMacro( OptimizeNormalizationFactor ,
bool );
167 itkGetConstReferenceMacro( OptimizeNormalizationFactor,
bool );
171 virtual ~PatternIntensityImageToImageMetric() {};
172 void PrintSelf(std::ostream& os, Indent indent)
const;
175 MeasureType ComputePIFixed(
void )
const;
178 MeasureType ComputePIDiff(
const TransformParametersType ¶meters,
float scalingfactor )
const;
182 void operator=(
const Self&);
202 #ifndef ITK_MANUAL_INSTANTIATION
203 #include "itkPatternIntensityImageToImageMetric.hxx"
206 #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
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
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::GradientImageFilterPointer GradientImageFilterPointer
OptimizerType::ScalesType ScalesType
MultiplyByConstantImageFilterType::Pointer m_MultiplyByConstantImageFilter
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
itk::MultiplyByConstantImageFilter< TransformedMovingImageType, double,TransformedMovingImageType > MultiplyByConstantImageFilterType
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