18#ifndef __itkSumOfPairwiseCorrelationCoefficientsMetric_H__
19#define __itkSumOfPairwiseCorrelationCoefficientsMetric_H__
23#include "itkSmoothingRecursiveGaussianImageFilter.h"
25#include "itkNearestNeighborInterpolateImageFunction.h"
26#include "itkExtractImageFilter.h"
32template<
class TFixedImage,
class TMovingImage >
55 itkSetMacro( NumAdditionalSamplesFixed,
unsigned int );
56 itkSetMacro( ReducedDimensionIndex,
unsigned int );
57 itkSetMacro( SubtractMean,
bool );
59 itkSetMacro( TransformIsStackTransform,
bool );
108 FixedImageType::ImageDimension );
112 MovingImageType::ImageDimension );
135 void PrintSelf( std::ostream & os, Indent indent )
const override;
144 typedef typename itk::ContinuousIndex< CoordinateRepresentationType, FixedImageDimension >
167 void SampleRandom(
const int n,
const int m, std::vector< int > & numbers )
const;
186#ifndef ITK_MANUAL_INSTANTIATION
187#include "itkSumOfPairwiseCorrelationCoefficientsMetric.hxx"
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics.
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::TransformParametersType TransformParametersType
Superclass::InputPointType InputPointType
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::FixedImageMaskPointer FixedImageMaskPointer
InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::GradientImageFilterType GradientImageFilterType
Superclass::TransformJacobianType TransformJacobianType
FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
Superclass::GradientImagePointer GradientImagePointer
Superclass::DerivativeType DerivativeType
Superclass::TransformPointer TransformPointer
ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::OutputPointType OutputPointType
ImageSamplerBase< FixedImageType > ImageSamplerType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::MovingImageMaskPointer MovingImageMaskPointer
Superclass::FixedImageType FixedImageType
TransformType::InputPointType FixedImagePointType
ImageSamplerType::Pointer ImageSamplerPointer
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::GradientPixelType GradientPixelType
Superclass::MeasureType MeasureType
MovingImageType::IndexType MovingImageIndexType
MovingImageType::RegionType MovingImageRegionType
FixedImageLimiterType::OutputType FixedImageLimiterOutputType
FixedImageIndexType::IndexValueType FixedImageIndexValueType
Superclass::MovingImagePixelType MovingImagePixelType
MovingImageLimiterType::OutputType MovingImageLimiterOutputType
GradientImageFilter< MovingImageType, RealType, RealType > CentralDifferenceGradientFilterType
LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
Superclass::FixedImageMaskType FixedImageMaskType
Superclass::GradientImageType GradientImageType
FixedImageType::PixelType FixedImagePixelType
Superclass::InterpolatorType InterpolatorType
TransformType::OutputPointType MovingImagePointType
FixedImageType::IndexType FixedImageIndexType
Superclass::TransformType TransformType
Superclass::MovingImageType MovingImageType
LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
Superclass::RealType RealType
Superclass::FixedImageRegionType FixedImageRegionType
Superclass::ParametersType ParametersType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::ImageSamplerPointer ImageSamplerPointer
Superclass::TransformType TransformType
Superclass::FixedImageIndexType FixedImageIndexType
Superclass::InterpolatorType InterpolatorType
Superclass::DerivativeType DerivativeType
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::FixedImageMaskType FixedImageMaskType
SmartPointer< const Self > ConstPointer
Superclass::FixedImagePointType FixedImagePointType
Superclass::FixedImageRegionType FixedImageRegionType
SumOfPairwiseCorrelationCoefficientsMetric()
Superclass::GradientImagePointer GradientImagePointer
Superclass::GradientPixelType GradientPixelType
FixedImageRegionType::SizeType FixedImageSizeType
SumOfPairwiseCorrelationCoefficientsMetric Self
Superclass::MovingImageType MovingImageType
Superclass::FixedImageLimiterType FixedImageLimiterType
Superclass::MeasureType MeasureType
void Initialize(void) override
Superclass::GradientImageType GradientImageType
Superclass::MovingImageRegionType MovingImageRegionType
Superclass::FixedImagePixelType FixedImagePixelType
void EvaluateTransformJacobianInnerProduct(const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const override
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::ImageSamplerType ImageSamplerType
Superclass::MovingImageLimiterType MovingImageLimiterType
unsigned int m_ReducedDimensionIndex
Superclass::MovingImagePixelType MovingImagePixelType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
Superclass::TransformParametersType TransformParametersType
Superclass::MovingImagePointType MovingImagePointType
Superclass::ImageSampleContainerType ImageSampleContainerType
itk::ContinuousIndex< CoordinateRepresentationType, FixedImageDimension > FixedImageContinuousIndexType
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::TransformPointer TransformPointer
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
bool m_TransformIsStackTransform
void GetDerivative(const TransformParametersType ¶meters, DerivativeType &derivative) const override
MeasureType GetValue(const TransformParametersType ¶meters) const override
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
SmartPointer< Self > Pointer
void GetValueAndDerivative(const TransformParametersType ¶meters, MeasureType &Value, DerivativeType &Derivative) const override
Superclass::MovingImageDerivativeType MovingImageDerivativeType
Superclass::TransformJacobianType TransformJacobianType
Superclass::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
void operator=(const Self &)
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::ParametersType ParametersType
Superclass::FixedImageIndexValueType FixedImageIndexValueType
Superclass::FixedImageLimiterOutputType FixedImageLimiterOutputType
Superclass::FixedImageConstPointer FixedImageConstPointer
~SumOfPairwiseCorrelationCoefficientsMetric() override
Superclass::OutputPointType OutputPointType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::MovingImageIndexType MovingImageIndexType
FixedImageSizeType m_GridSize
Superclass::CentralDifferenceGradientFilterType CentralDifferenceGradientFilterType
Superclass::InputPointType InputPointType
SumOfPairwiseCorrelationCoefficientsMetric(const Self &)
Superclass::FixedImageType FixedImageType
unsigned int m_NumAdditionalSamplesFixed
Superclass::BSplineInterpolatorType BSplineInterpolatorType
Superclass::MovingImageContinuousIndexType MovingImageContinuousIndexType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
Superclass::RealType RealType
Superclass::MovingImageLimiterOutputType MovingImageLimiterOutputType
AdvancedImageToImageMetric< TFixedImage, TMovingImage > Superclass
Superclass::GradientImageFilterType GradientImageFilterType
void PrintSelf(std::ostream &os, Indent indent) const override
void SampleRandom(const int n, const int m, std::vector< int > &numbers) const