18#ifndef itkVarianceImageFunction_h
19#define itkVarianceImageFunction_h
42template <
typename TInputImage,
typename TCoordRep =
float>
44 :
public ImageFunction<TInputImage, typename NumericTraits<typename TInputImage::PixelType>::RealType, TCoordRep>
67 using typename Superclass::OutputType;
73 using typename Superclass::ContinuousIndexType;
79 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);
120 unsigned int m_NeighborhoodRadius{};
124#ifndef ITK_MANUAL_INSTANTIATION
125# include "itkVarianceImageFunction.hxx"
Evaluates a function of an image at specified position.
typename InputImageType::IndexType IndexType
Control indentation during Print() invocation.
Light weight base class for most itk classes.
A templated class holding a geometric point in n-Dimensional space.
Calculate the variance in the neighborhood of a pixel.
~VarianceImageFunction() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
typename NumericTraits< typename InputImageType::PixelType >::RealType RealType
RealType Evaluate(const PointType &point) const override
TInputImage InputImageType
RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
RealType EvaluateAtIndex(const IndexType &index) const override
ImageBaseType::IndexType IndexType
ImageBaseType::PointType PointType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
*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