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);
147 virtual ~GradientDifferenceImageToImageMetric() {}
148 void PrintSelf(std::ostream & os,
Indent indent)
const;
152 void ComputeMovedGradientRange(
void)
const;
155 void ComputeVariance(
void)
const;
158 MeasureType ComputeMeasure(
const TransformParametersType & parameters,
159 const double *subtractionFactor)
const;
169 void operator=(
const Self &);
191 itkGetStaticConstMacro(FixedImageDimension) >
192 m_FixedSobelOperators[FixedImageDimension];
203 itkGetStaticConstMacro(MovedImageDimension) >
204 m_MovedSobelOperators[MovedImageDimension];
212 #ifndef ITK_MANUAL_INSTANTIATION
213 #include "itkGradientDifferenceImageToImageMetric.hxx"