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