17 #ifndef __itkImageToImageMetric_h
18 #define __itkImageToImageMetric_h
23 #include "itkConfigure.h"
25 #ifdef ITK_USE_OPTIMIZED_REGISTRATION_METHODS
59 template <
class TFixedImage,
class TMovingImage>
86 itkStaticConstMacro(MovingImageDimension,
88 TMovingImage::ImageDimension);
89 itkStaticConstMacro(FixedImageDimension,
91 TFixedImage::ImageDimension);
95 itkGetStaticConstMacro(MovingImageDimension),
96 itkGetStaticConstMacro(FixedImageDimension)>
115 itkGetStaticConstMacro(MovingImageDimension)>
118 itkGetStaticConstMacro(MovingImageDimension)>
180 itkGetConstReferenceMacro( NumberOfPixelsCounted,
unsigned long );
190 #ifdef ITK_LEGACY_REMOVE
196 itkGetConstObjectMacro( MovingImageMask, MovingImageMaskType );
199 itkSetObjectMacro( FixedImageMask, FixedImageMaskType );
200 #ifdef ITK_LEGACY_REMOVE
201 itkSetConstObjectMacro( FixedImageMask, FixedImageMaskType );
206 itkGetConstObjectMacro( FixedImageMask, FixedImageMaskType );
209 itkSetMacro( ComputeGradient,
bool);
210 itkGetConstReferenceMacro( ComputeGradient,
bool);
211 itkBooleanMacro(ComputeGradient);
214 virtual void ComputeGradient();
217 itkGetConstObjectMacro( GradientImage, GradientImageType );
220 void SetTransformParameters(
const ParametersType & parameters )
const;
223 unsigned int GetNumberOfParameters(
void)
const
224 {
return m_Transform->GetNumberOfParameters(); }
232 virtual ~ImageToImageMetric();
233 void PrintSelf(std::ostream& os,
Indent indent) const;
235 mutable
unsigned long m_NumberOfPixelsCounted;
243 bool m_ComputeGradient;
246 #ifdef ITK_LEGACY_REMOVE
255 ImageToImageMetric(
const Self&);
256 void operator=(
const Self&);
264 #ifndef ITK_MANUAL_INSTANTIATION