18 #ifndef __itkCovarianceImageFunction_h
19 #define __itkCovarianceImageFunction_h
44 template<
class TInputImage,
class TCoordRep =
float >
48 typename NumericTraits< typename TInputImage::PixelType::ValueType >::RealType >,
85 itkStaticConstMacro(ImageDimension,
unsigned int,
86 InputImageType::ImageDimension);
101 this->ConvertPointToNearestIndex(point, index);
102 return this->EvaluateAtIndex(index);
110 this->ConvertContinuousIndexToNearestIndex(cindex, index);
111 return this->EvaluateAtIndex(index);
116 itkSetMacro(NeighborhoodRadius,
unsigned int);
117 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
121 void PrintSelf(std::ostream & os,
Indent indent)
const;
126 void operator=(
const Self &);
133 #define ITK_TEMPLATE_CovarianceImageFunction(_, EXPORT, TypeX, TypeY) \
136 _( 2 ( class EXPORT CovarianceImageFunction< ITK_TEMPLATE_2 TypeX > ) ) \
137 namespace Templates \
139 typedef CovarianceImageFunction< ITK_TEMPLATE_2 TypeX > \
140 CovarianceImageFunction##TypeY; \
144 #if ITK_TEMPLATE_EXPLICIT
145 #include "Templates/itkCovarianceImageFunction+-.h"
149 #include "itkCovarianceImageFunction.hxx"