18#ifndef itkSumOfSquaresImageFunction_h
19#define itkSumOfSquaresImageFunction_h
46template <
typename TInputImage,
typename TCoordinate =
float>
48 :
public ImageFunction<TInputImage, typename NumericTraits<typename TInputImage::PixelType>::RealType, TCoordinate>
89 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
119 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
129 itkGetConstReferenceMacro(NeighborhoodSize,
unsigned int);
142 ImageSizeType::Filled(1)) };
146#ifndef ITK_MANUAL_INSTANTIATION
147# include "itkSumOfSquaresImageFunction.hxx"
typename InputImageType::PixelType InputPixelType
void ConvertPointToNearestIndex(const PointType &point, IndexType &index) const
typename InputImageType::IndexType IndexType
Point< TCoordinate, Self::ImageDimension > PointType
void ConvertContinuousIndexToNearestIndex(const ContinuousIndexType &cindex, IndexType &index) const
ContinuousIndex< TCoordinate, Self::ImageDimension > ContinuousIndexType
Control indentation during Print() invocation.
Implements transparent reference counting.
ImageFunction< TInputImage, typename NumericTraits< typename TInputImage::PixelType >::RealType, TCoordinate > Superclass
SmartPointer< Self > Pointer
static constexpr unsigned int ImageDimension
typename NumericTraits< typename InputImageType::PixelType >::RealType RealType
SumOfSquaresImageFunction Self
unsigned int m_NeighborhoodSize
std::vector< Offset< ImageDimension > > m_NeighborhoodOffsets
RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
unsigned int m_NeighborhoodRadius
RealType EvaluateAtIndex(const IndexType &index) const override
~SumOfSquaresImageFunction() override=default
typename InputImageType::IndexType IndexType
TInputImage InputImageType
Point< TCoordinate, Self::ImageDimension > PointType
SumOfSquaresImageFunction()
RealType Evaluate(const PointType &point) const override
void SetNeighborhoodRadius(unsigned int radius)
ContinuousIndex< TCoordinate, Self::ImageDimension > ContinuousIndexType
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
typename InputImageType::SizeType ImageSizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
std::vector< Offset< VImageDimension > > GenerateRectangularImageNeighborhoodOffsets(const Size< VImageDimension > &radius)
*par Constraints *The filter image with at least two dimensions and a vector *length of at least The theory supports extension to scalar but *the implementation of the itk vector classes do not **The template parameter TRealType must be floating point(float or double) or *a user-defined "real" numerical type with arithmetic operations defined *sufficient to compute derivatives. **\par Performance *This filter will automatically multithread if run with *SetUsePrincipleComponents