19 #ifndef __itkVarianceOverLastDimensionImageMetric_h 20 #define __itkVarianceOverLastDimensionImageMetric_h 22 #include "itkSmoothingRecursiveGaussianImageFilter.h" 24 #include "itkNearestNeighborInterpolateImageFunction.h" 51 template<
class TFixedImage,
class TMovingImage >
74 itkSetMacro( SampleLastDimensionRandomly,
bool );
75 itkSetMacro( NumSamplesLastDimension,
unsigned int );
76 itkSetMacro( NumAdditionalSamplesFixed,
unsigned int );
77 itkSetMacro( ReducedDimensionIndex,
unsigned int );
78 itkSetMacro( SubtractMean,
bool );
79 itkSetMacro( GridSize, FixedImageSizeType );
80 itkSetMacro( TransformIsStackTransform,
bool );
83 itkGetConstMacro( SampleLastDimensionRandomly,
bool );
84 itkGetConstMacro( NumSamplesLastDimension,
int );
133 FixedImageType::ImageDimension );
137 MovingImageType::ImageDimension );
140 virtual MeasureType
GetValue(
const TransformParametersType & parameters )
const;
143 virtual void GetDerivative(
const TransformParametersType & parameters,
144 DerivativeType & derivative )
const;
148 MeasureType & Value, DerivativeType & Derivative )
const;
153 virtual void Initialize(
void ) throw ( ExceptionObject );
158 virtual ~VarianceOverLastDimensionImageMetric() {}
159 void PrintSelf( std::ostream & os, Indent indent )
const;
168 typedef typename itk::ContinuousIndex< CoordinateRepresentationType, FixedImageDimension >
181 const TransformJacobianType & jacobian,
182 const MovingImageDerivativeType & movingImageDerivative,
183 DerivativeType & imageJacobian )
const;
191 void SampleRandom(
const int n,
const int m, std::vector< int > & numbers )
const;
215 #ifndef ITK_MANUAL_INSTANTIATION 216 #include "itkVarianceOverLastDimensionImageMetric.hxx" 219 #endif // end #ifndef __itkVarianceOverLastDimensionImageMetric_h Superclass::MeasureType MeasureType
SmartPointer< Self > Pointer
Superclass::FixedImagePixelType FixedImagePixelType
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::GradientImageFilterType GradientImageFilterType
void PrintSelf(std::ostream &os, Indent indent) const
Superclass::FixedImageIndexValueType FixedImageIndexValueType
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::MovingImageLimiterOutputType MovingImageLimiterOutputType
Superclass::FixedImagePointType FixedImagePointType
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::MovingImagePixelType MovingImagePixelType
Superclass::InputPointType InputPointType
LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
Superclass::TransformType TransformType
Superclass::TransformParametersType TransformParametersType
Superclass::MovingImageType MovingImageType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::FixedImageMaskPointer FixedImageMaskPointer
void operator=(const Self &)
Superclass::OutputPointType OutputPointType
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics...
Superclass::TransformParametersType TransformParametersType
Superclass::RealType RealType
VarianceOverLastDimensionImageMetric()
Superclass::GradientPixelType GradientPixelType
Superclass::GradientImageType GradientImageType
bool m_TransformIsStackTransform
Superclass::ImageSampleContainerType ImageSampleContainerType
FixedImageLimiterType::OutputType FixedImageLimiterOutputType
Superclass::TransformType TransformType
Superclass::ImageSamplerType ImageSamplerType
Superclass::FixedImageRegionType FixedImageRegionType
Superclass::MovingImageIndexType MovingImageIndexType
unsigned int m_ReducedDimensionIndex
virtual void Initialize(void)
ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
Superclass::GradientPixelType GradientPixelType
MovingImageType::IndexType MovingImageIndexType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
Superclass::FixedImageLimiterOutputType FixedImageLimiterOutputType
TransformType::InputPointType FixedImagePointType
VarianceOverLastDimensionImageMetric Self
Superclass::TransformPointer TransformPointer
Superclass::MovingImageRegionType MovingImageRegionType
Superclass::ParametersType ParametersType
FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
ImageSamplerBase< FixedImageType > ImageSamplerType
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::FixedImageLimiterType FixedImageLimiterType
void SampleRandom(const int n, const int m, std::vector< int > &numbers) const
Superclass::ParametersType ParametersType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::MovingImagePointType MovingImagePointType
FixedImageType::IndexType FixedImageIndexType
Superclass::BSplineInterpolatorType BSplineInterpolatorType
Superclass::FixedImageIndexType FixedImageIndexType
unsigned int m_NumAdditionalSamplesFixed
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::FixedImageRegionType FixedImageRegionType
Superclass::FixedImageMaskType FixedImageMaskType
Superclass::GradientImagePointer GradientImagePointer
Superclass::InputPointType InputPointType
unsigned int m_NumSamplesLastDimension
virtual void GetValueAndDerivative(const TransformParametersType ¶meters, MeasureType &Value, DerivativeType &Derivative) const
Superclass::MovingImageContinuousIndexType MovingImageContinuousIndexType
FixedImageIndexType::IndexValueType FixedImageIndexValueType
TransformType::OutputPointType MovingImagePointType
Superclass::FixedImageType FixedImageType
Superclass::MovingImageMaskType MovingImageMaskType
LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
Superclass::GradientImageType GradientImageType
Superclass::TransformPointer TransformPointer
FixedImageRegionType::SizeType FixedImageSizeType
Superclass::MeasureType MeasureType
Superclass::MovingImageDerivativeType MovingImageDerivativeType
Superclass::GradientImageFilterType GradientImageFilterType
ImageSamplerType::Pointer ImageSamplerPointer
MovingImageType::RegionType MovingImageRegionType
Superclass::InterpolatorType InterpolatorType
SmartPointer< const Self > ConstPointer
bool m_SampleLastDimensionRandomly
Superclass::TransformJacobianType TransformJacobianType
void EvaluateTransformJacobianInnerProduct(const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const
AdvancedImageToImageMetric< TFixedImage, TMovingImage > Superclass
Superclass::CoordinateRepresentationType CoordinateRepresentationType
Superclass::MovingImageType MovingImageType
Superclass::InterpolatorType InterpolatorType
virtual void GetDerivative(const TransformParametersType ¶meters, DerivativeType &derivative) const
Superclass::MovingImagePixelType MovingImagePixelType
GradientImageFilter< MovingImageType, RealType, RealType > CentralDifferenceGradientFilterType
Superclass::RealType RealType
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
FixedImageSizeType m_GridSize
Superclass::MovingImageMaskPointer MovingImageMaskPointer
MovingImageLimiterType::OutputType MovingImageLimiterOutputType
Superclass::TransformJacobianType TransformJacobianType
Superclass::MovingImageLimiterType MovingImageLimiterType
Superclass::OutputPointType OutputPointType
FixedImageType::PixelType FixedImagePixelType
ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
Superclass::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
Superclass::FixedImageMaskType FixedImageMaskType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::ImageSamplerPointer ImageSamplerPointer
Superclass::FixedImageType FixedImageType
Compute the sum of variances over the slowest varying dimension in the moving image.
BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::DerivativeType DerivativeType
Superclass::CentralDifferenceGradientFilterType CentralDifferenceGradientFilterType
Superclass::DerivativeType DerivativeType
virtual MeasureType GetValue(const TransformParametersType ¶meters) const
itk::ContinuousIndex< CoordinateRepresentationType, FixedImageDimension > FixedImageContinuousIndexType
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::GradientImagePointer GradientImagePointer