18 #ifndef __itkGradientDifferenceImageToImageMetric_h
19 #define __itkGradientDifferenceImageToImageMetric_h
57 template<
class TFixedImage,
class TMovingImage >
77 typedef typename Superclass::RealType
RealType;
93 itkStaticConstMacro(FixedImageDimension,
unsigned int, TFixedImage::ImageDimension);
96 itkGetStaticConstMacro(FixedImageDimension) >
113 itkStaticConstMacro(MovedImageDimension,
unsigned int, MovingImageType::ImageDimension);
135 virtual void Initialize(
void)
139 void WriteGradientImagesToFiles(
void) const;
143 itkSetMacro(DerivativeDelta,
double);
144 itkGetConstReferenceMacro(DerivativeDelta,
double);
149 virtual ~GradientDifferenceImageToImageMetric() {}
150 void PrintSelf(std::ostream & os,
Indent indent)
const;
153 void ComputeMovedGradientRange(
void)
const;
156 void ComputeVariance(
void)
const;
159 MeasureType ComputeMeasure(
const TransformParametersType & parameters,
160 const double *subtractionFactor)
const;
171 void operator=(
const Self &);
193 itkGetStaticConstMacro(FixedImageDimension) >
194 m_FixedSobelOperators[FixedImageDimension];
205 itkGetStaticConstMacro(MovedImageDimension) >
206 m_MovedSobelOperators[MovedImageDimension];
214 #ifndef ITK_MANUAL_INSTANTIATION
215 #include "itkGradientDifferenceImageToImageMetric.hxx"