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,
79 itkStaticConstMacro(ImageDimension,
unsigned int,
80 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 ITK_OVERRIDE;
125 #ifndef ITK_MANUAL_INSTANTIATION
126 #include "itkVarianceImageFunction.hxx"
SmartPointer< Self > Pointer
Light weight base class for most itk classes.
virtual RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
TInputImage InputImageType
ImageFunction< TInputImage, typename NumericTraits< typename TInputImage::PixelType >::RealType, TCoordRep > Superclass
Calculate the variance in the neighborhood of a pixel.
VarianceImageFunction Self
~VarianceImageFunction() override
ImageBaseType::PointType PointType
SmartPointer< const Self > ConstPointer
virtual RealType Evaluate(const PointType &point) const override
Superclass::PointType PointType
Superclass::ContinuousIndexType ContinuousIndexType
NumericTraits< typename InputImageType::PixelType >::RealType RealType
Superclass::IndexType IndexType
Superclass::OutputType OutputType
unsigned int m_NeighborhoodRadius
Control indentation during Print() invocation.
Evaluates a function of an image at specified position.
ImageBaseType::IndexType IndexType