14 #ifndef __itkMultiInputImageToImageMetricBase_h
15 #define __itkMultiInputImageToImageMetricBase_h
21 #define itkSetNumberOfMacro( name ) \
22 virtual void SetNumberOf##name##s( const unsigned int _arg ) \
24 if( this->m_NumberOf##name##s != _arg ) \
26 this->m_##name##Vector.resize( _arg ); \
27 this->m_NumberOf##name##s = _arg; \
30 } // comments for allowing ; after calling the macro
44 template<
class TFixedImage,
class TMovingImage >
95 typedef InterpolateImageFunction<
111 virtual void SetFixedImage(
const FixedImageType * _arg,
unsigned int pos );
121 virtual const FixedImageType *
GetFixedImage(
unsigned int pos )
const;
134 itkGetConstMacro( NumberOfFixedImages,
unsigned int );
162 itkGetConstMacro( NumberOfFixedImageMasks,
unsigned int );
190 itkGetConstMacro( NumberOfFixedImageRegions,
unsigned int );
195 virtual void SetMovingImage(
const MovingImageType * _arg,
unsigned int pos );
205 virtual const MovingImageType *
GetMovingImage(
unsigned int pos )
const;
218 itkGetConstMacro( NumberOfMovingImages,
unsigned int );
246 itkGetConstMacro( NumberOfMovingImageMasks,
unsigned int );
253 virtual void SetInterpolator( InterpolatorType * _arg,
unsigned int pos );
276 itkGetConstMacro( NumberOfInterpolators,
unsigned int );
279 itkGetConstMacro( InterpolatorsAreBSpline,
bool );
309 itkGetConstMacro( NumberOfFixedImageInterpolators,
unsigned int );
314 virtual void Initialize(
void ) throw ( ExceptionObject );
322 virtual ~MultiInputImageToImageMetricBase() {}
347 const MovingImagePointType & mappedPoint,
348 RealType & movingImageValue,
349 MovingImageDerivativeType * gradient ) const;
353 const MovingImagePointType & mappedPoint ) const;
370 void operator=( const Self & );
387 #undef itkSetNumberOfMacro
389 #ifndef ITK_MANUAL_INSTANTIATION
390 #include "itkMultiInputImageToImageMetricBase.hxx"
393 #endif // end #ifndef __itkMultiInputImageToImageMetricBase_h
Superclass::MeasureType MeasureType
Superclass::InputPointType InputPointType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
Superclass::TransformParametersType TransformParametersType
Superclass::MovingImageType MovingImageType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::OutputPointType OutputPointType
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics...
Superclass::GradientPixelType GradientPixelType
FixedImageType::Pointer FixedImagePointer
Superclass::TransformType TransformType
Superclass::FixedImageRegionType FixedImageRegionType
MovingImageType::IndexType MovingImageIndexType
InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
Superclass::ParametersType ParametersType
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
Superclass::InterpolatorPointer InterpolatorPointer
TransformType::OutputPointType MovingImagePointType
Superclass::FixedImageType FixedImageType
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::GradientImageType GradientImageType
Superclass::TransformPointer TransformPointer
Superclass::GradientImageFilterType GradientImageFilterType
Superclass::InterpolatorType InterpolatorType
Superclass::TransformJacobianType TransformJacobianType
MovingImageType::Pointer MovingImagePointer
Superclass::MovingImagePixelType MovingImagePixelType
Superclass::RealType RealType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
Superclass::FixedImageMaskType FixedImageMaskType
BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::DerivativeType DerivativeType
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::GradientImagePointer GradientImagePointer