18 #ifndef itkVectorMeanImageFunction_h
19 #define itkVectorMeanImageFunction_h
44 template<
typename TInputImage,
typename TCoordRep =
float >
47 typename NumericTraits< typename TInputImage::PixelType >::RealType,
84 static constexpr
unsigned int ImageDimension = InputImageType::ImageDimension;
97 this->ConvertPointToNearestIndex(point, index);
98 return this->EvaluateAtIndex(index);
106 this->ConvertContinuousIndexToNearestIndex(cindex, index);
107 return this->EvaluateAtIndex(index);
112 itkSetMacro(NeighborhoodRadius,
unsigned int);
113 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
119 void PrintSelf(std::ostream & os,
Indent indent)
const override;
126 #ifndef ITK_MANUAL_INSTANTIATION
127 #include "itkVectorMeanImageFunction.hxx"
Light weight base class for most itk classes.
typename Superclass::PointType PointType
Define numeric traits for std::vector.
TInputImage InputImageType
ImageBaseType::IndexType IndexType
Calculate the mean value in the neighborhood of a pixel in a Vector image.
typename Superclass::OutputType OutputType
RealType Evaluate(const PointType &point) const override
unsigned int m_NeighborhoodRadius
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
typename NumericTraits< typename TInputImage::PixelType >::RealType RealType
Evaluates a function of an image at specified position.
typename Superclass::ContinuousIndexType ContinuousIndexType
typename Superclass::IndexType IndexType