18 #ifndef itkVarianceImageFunction_h
19 #define itkVarianceImageFunction_h
42 template<
typename TInputImage,
typename TCoordRep =
float >
44 public ImageFunction< TInputImage, typename NumericTraits< typename TInputImage::PixelType >::RealType,
80 static constexpr
unsigned int ImageDimension = InputImageType::ImageDimension;
94 this->ConvertPointToNearestIndex(point, index);
95 return this->EvaluateAtIndex(index);
103 this->ConvertContinuousIndexToNearestIndex(cindex, index);
104 return this->EvaluateAtIndex(index);
109 itkSetMacro(NeighborhoodRadius,
unsigned int);
110 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
116 void PrintSelf(std::ostream & os,
Indent indent)
const override;
123 #ifndef ITK_MANUAL_INSTANTIATION
124 #include "itkVarianceImageFunction.hxx"
typename NumericTraits< typename InputImageType::PixelType >::RealType RealType
Light weight base class for most itk classes.
Define numeric traits for std::vector.
TInputImage InputImageType
typename Superclass::OutputType OutputType
typename Superclass::IndexType IndexType
Calculate the variance in the neighborhood of a pixel.
typename Superclass::ContinuousIndexType ContinuousIndexType
ImageBaseType::IndexType IndexType
RealType Evaluate(const PointType &point) const override
RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
typename Superclass::PointType PointType
unsigned int m_NeighborhoodRadius
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
Evaluates a function of an image at specified position.