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);
129 void PrintSelf(std::ostream & os,
Indent indent)
const;
133 void operator=(
const Self &);
140 #ifndef ITK_MANUAL_INSTANTIATION
141 #include "itkSumOfSquaresImageFunction.hxx"