18 #ifndef __itkPatternIntensityImageToImageMetric_h 19 #define __itkPatternIntensityImageToImageMetric_h 24 #include "itkCastImageFilter.h" 25 #include "itkResampleImageFilter.h" 26 #include "itkMultiplyImageFilter.h" 27 #include "itkSubtractImageFilter.h" 28 #include "itkOptimizer.h" 29 #include "itkRescaleIntensityImageFilter.h" 44 template<
class TFixedImage,
class TMovingImage >
115 FixedImageType::ImageDimension );
125 typedef itk::ResampleImageFilter<
128 typedef itk::RescaleIntensityImageFilter<
132 typedef itk::SubtractImageFilter<
137 typedef itk::MultiplyImageFilter<
145 MovingImageType::ImageDimension );
148 virtual MeasureType
GetValue(
const TransformParametersType & parameters )
const;
151 virtual void GetDerivative(
const TransformParametersType & parameters,
152 DerivativeType & derivative )
const;
156 MeasureType & Value, DerivativeType & Derivative )
const;
163 virtual void Initialize(
void ) throw ( ExceptionObject );
166 itkSetMacro( Scales, ScalesType );
167 itkGetConstReferenceMacro( Scales, ScalesType );
170 itkSetMacro( NoiseConstant,
double );
171 itkGetConstReferenceMacro( NoiseConstant,
double );
174 itkSetMacro( OptimizeNormalizationFactor,
bool );
175 itkGetConstReferenceMacro( OptimizeNormalizationFactor,
bool );
180 virtual ~PatternIntensityImageToImageMetric() {}
181 void PrintSelf( std::ostream & os, Indent indent )
const;
187 MeasureType
ComputePIDiff(
const TransformParametersType & parameters,
float scalingfactor )
const;
212 #ifndef ITK_MANUAL_INSTANTIATION 213 #include "itkPatternIntensityImageToImageMetric.hxx" 216 #endif // end #ifndef __itkPatternIntensityImageToImageMetric_h
Superclass::MeasureType MeasureType
Superclass::FixedImageMaskType FixedImageMaskType
PatternIntensityImageToImageMetric()
Superclass::TransformType TransformType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::FixedImageRegionType FixedImageRegionType
AdvancedImageToImageMetric< TFixedImage, TMovingImage > Superclass
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
MultiplyImageFilterPointer m_MultiplyImageFilter
Superclass::InputPointType InputPointType
LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
Superclass::TransformParametersType TransformParametersType
Superclass::MovingImageType MovingImageType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::FixedImagePixelType FixedImagePixelType
Superclass::OutputPointType OutputPointType
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics...
Superclass::FixedImageLimiterOutputType FixedImageLimiterOutputType
Superclass::DerivativeType DerivativeType
MultiplyImageFilterType::Pointer MultiplyImageFilterPointer
Computes similarity between two objects to be registered.
Superclass::RealType RealType
Superclass::FixedImageType FixedImageType
DifferenceImageFilterPointer m_DifferenceImageFilter
Superclass::GradientPixelType GradientPixelType
double m_NormalizationFactor
Superclass::MovingImagePointer MovingImagePointer
FixedImageLimiterType::OutputType FixedImageLimiterOutputType
Superclass::TransformType TransformType
RayCastInterpolatorType::Pointer RayCastInterpolatorPointer
TransformType::ScalarType ScalarType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::FixedImageRegionType FixedImageRegionType
unsigned int m_NeighborhoodRadius
itk::AdvancedRayCastInterpolateImageFunction< MovingImageType, ScalarType > RayCastInterpolatorType
TransformMovingImageFilterType::Pointer TransformMovingImageFilterPointer
virtual void GetDerivative(const TransformParametersType ¶meters, DerivativeType &derivative) const
ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
RescaleIntensityImageFilterPointer m_RescaleImageFilter
bool m_OptimizeNormalizationFactor
Superclass::TransformParametersType TransformParametersType
Superclass::GradientPixelType GradientPixelType
Superclass::TransformPointer TransformPointer
Superclass::MeasureType MeasureType
Superclass::ImageSampleContainerType ImageSampleContainerType
DifferenceImageFilterType::Pointer DifferenceImageFilterPointer
itk::ResampleImageFilter< MovingImageType, TransformedMovingImageType > TransformMovingImageFilterType
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
Superclass::ParametersType ParametersType
FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
ImageSamplerBase< FixedImageType > ImageSamplerType
itk::RescaleIntensityImageFilter< TransformedMovingImageType, TransformedMovingImageType > RescaleIntensityImageFilterType
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::GradientImageFilterPointer GradientImageFilterPointer
OptimizerType::ScalesType ScalesType
void operator=(const Self &)
virtual void Initialize(void)
Superclass::MovingImageRegionType MovingImageRegionType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::MovingImagePixelType MovingImagePixelType
itk::Image< FixedImagePixelType, itkGetStaticConstMacro(FixedImageDimension) > TransformedMovingImageType
itk::SubtractImageFilter< FixedImageType, TransformedMovingImageType, TransformedMovingImageType > DifferenceImageFilterType
MeasureType m_FixedMeasure
TransformMovingImageFilterPointer m_TransformMovingImageFilter
CombinationTransformType::Pointer CombinationTransformPointer
Superclass::ParametersType ParametersType
Superclass::InterpolatorType InterpolatorType
Superclass::FixedImageType FixedImageType
Superclass::MovingImageMaskType MovingImageMaskType
CombinationTransformPointer m_CombinationTransform
LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
Superclass::InputPointType InputPointType
virtual void GetValueAndDerivative(const TransformParametersType ¶meters, MeasureType &Value, DerivativeType &Derivative) const
Superclass::GradientImageType GradientImageType
virtual MeasureType GetValue(const TransformParametersType ¶meters) const
Superclass::MovingImageLimiterType MovingImageLimiterType
Superclass::TransformPointer TransformPointer
SmartPointer< const Self > ConstPointer
MeasureType ComputePIDiff(const TransformParametersType ¶meters, float scalingfactor) const
Superclass::TransformJacobianType TransformJacobianType
itk::MultiplyImageFilter< TransformedMovingImageType, TransformedMovingImageType, TransformedMovingImageType > MultiplyImageFilterType
Superclass::GradientImageType GradientImageType
Superclass::GradientImageFilterType GradientImageFilterType
ImageSamplerType::Pointer ImageSamplerPointer
MovingImageType::RegionType MovingImageRegionType
Superclass::InterpolatorType InterpolatorType
RescaleIntensityImageFilterType::Pointer RescaleIntensityImageFilterPointer
Superclass::MovingImageMaskPointer MovingImageMaskPointer
Projective interpolation of an image at specified positions.
Superclass::TransformJacobianType TransformJacobianType
Superclass::MovingImageType MovingImageType
itk::Optimizer OptimizerType
MovingImageType::Pointer MovingImagePointer
SmartPointer< Self > Pointer
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::ImageSamplerPointer ImageSamplerPointer
Superclass::GradientImageFilterType GradientImageFilterType
Superclass::MovingImagePixelType MovingImagePixelType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
Superclass::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
Superclass::RealType RealType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
MovingImageLimiterType::OutputType MovingImageLimiterOutputType
MeasureType ComputePIFixed(void) const
Superclass::FixedImageLimiterType FixedImageLimiterType
Superclass::MovingImageLimiterOutputType MovingImageLimiterOutputType
FixedImageType::PixelType FixedImagePixelType
Superclass::GradientImagePointer GradientImagePointer
ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
Superclass::FixedImageMaskType FixedImageMaskType
Superclass::ImageSamplerType ImageSamplerType
Superclass::OutputPointType OutputPointType
PatternIntensityImageToImageMetric Self
itk::AdvancedCombinationTransform< ScalarType, FixedImageDimension > CombinationTransformType
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::DerivativeType DerivativeType
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::GradientImagePointer GradientImagePointer