18 #ifndef itkSumOfSquaresImageFunction_h
19 #define itkSumOfSquaresImageFunction_h
46 template <
typename TInputImage,
typename TCoordinate =
float>
48 :
public ImageFunction<TInputImage, typename NumericTraits<typename TInputImage::PixelType>::RealType, TCoordinate>
71 using typename Superclass::InputPixelType;
74 using typename Superclass::OutputType;
80 using typename Superclass::ContinuousIndexType;
89 static constexpr
unsigned int ImageDimension = InputImageType::ImageDimension;
96 EvaluateAtIndex(
const IndexType & index)
const override;
104 this->ConvertPointToNearestIndex(
point, index);
105 return this->EvaluateAtIndex(index);
113 this->ConvertContinuousIndexToNearestIndex(cindex, index);
114 return this->EvaluateAtIndex(index);
119 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
125 m_NeighborhoodRadius = radius;
126 m_NeighborhoodSize = m_NeighborhoodOffsets.size();
129 itkGetConstReferenceMacro(NeighborhoodSize,
unsigned int);
135 PrintSelf(std::ostream & os,
Indent indent)
const override;
138 unsigned int m_NeighborhoodRadius{};
139 unsigned int m_NeighborhoodSize{};
142 ImageSizeType::Filled(1)) };
146 #ifndef ITK_MANUAL_INSTANTIATION
147 # include "itkSumOfSquaresImageFunction.hxx"