18 #ifndef itkMeanImageFunction_h
19 #define itkMeanImageFunction_h
44 template<
typename TInputImage,
typename TCoordRep =
float >
47 typename NumericTraits< typename TInputImage::PixelType >::RealType,
83 itkStaticConstMacro(ImageDimension,
unsigned int,
84 InputImageType::ImageDimension);
98 this->ConvertPointToNearestIndex(point, index);
99 return this->EvaluateAtIndex(index);
107 this->ConvertContinuousIndexToNearestIndex(cindex, index);
108 return this->EvaluateAtIndex(index);
113 itkSetMacro(NeighborhoodRadius,
unsigned int);
114 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
120 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
129 #ifndef ITK_MANUAL_INSTANTIATION
130 #include "itkMeanImageFunction.hxx"
SmartPointer< Self > Pointer
Light weight base class for most itk classes.
Calculate the mean value in the neighborhood of a pixel.
unsigned int m_NeighborhoodRadius
Superclass::IndexType IndexType
TInputImage InputImageType
Superclass::ContinuousIndexType ContinuousIndexType
~MeanImageFunction() override
SmartPointer< const Self > ConstPointer
NumericTraits< typename InputImageType::PixelType >::RealType RealType
ImageFunction< TInputImage, typename NumericTraits< typename TInputImage::PixelType >::RealType, TCoordRep > Superclass
ImageBaseType::PointType PointType
Superclass::OutputType OutputType
Control indentation during Print() invocation.
virtual RealType Evaluate(const PointType &point) const override
virtual RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
Superclass::PointType PointType
Evaluates a function of an image at specified position.
ImageBaseType::IndexType IndexType