18 #ifndef __itkSumOfSquaresImageFunction_h
19 #define __itkSumOfSquaresImageFunction_h
43 template<
class TInputImage,
class TCoordRep =
float >
45 public ImageFunction< TInputImage, typename NumericTraits< typename TInputImage::PixelType >::RealType,
80 itkStaticConstMacro(ImageDimension,
unsigned int,
81 InputImageType::ImageDimension);
95 this->ConvertPointToNearestIndex(point, index);
96 return this->EvaluateAtIndex(index);
104 this->ConvertContinuousIndexToNearestIndex(cindex, index);
105 return this->EvaluateAtIndex(index);
110 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
112 void SetNeighborhoodRadius(
unsigned int radius)
114 m_NeighborhoodRadius = radius;
116 m_NeighborhoodSize = 1;
117 long twoRPlus1 = 2 * m_NeighborhoodRadius + 1;
118 for (
unsigned int i = 0; i < ImageDimension; i++ )
120 m_NeighborhoodSize *= twoRPlus1;
124 itkGetConstReferenceMacro(NeighborhoodSize,
unsigned int);
128 void PrintSelf(std::ostream & os,
Indent indent)
const;
132 void operator=(
const Self &);
140 #define ITK_TEMPLATE_SumOfSquaresImageFunction(_, EXPORT, TypeX, TypeY) \
143 _( 2 ( class EXPORT SumOfSquaresImageFunction< ITK_TEMPLATE_2 TypeX > ) ) \
144 namespace Templates \
146 typedef SumOfSquaresImageFunction< ITK_TEMPLATE_2 TypeX > \
147 SumOfSquaresImageFunction##TypeY; \
151 #if ITK_TEMPLATE_EXPLICIT
152 #include "Templates/itkSumOfSquaresImageFunction+-.h"
156 #include "itkSumOfSquaresImageFunction.hxx"