18#ifndef itkVectorMeanImageFunction_h
19#define itkVectorMeanImageFunction_h
44template <
typename TInputImage,
typename TCoordRep =
float>
46 :
public ImageFunction<TInputImage, typename NumericTraits<typename TInputImage::PixelType>::RealType, TCoordRep>
69 using typename Superclass::OutputType;
75 using typename Superclass::ContinuousIndexType;
81 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
96 this->ConvertPointToNearestIndex(
point, index);
97 return this->EvaluateAtIndex(index);
105 this->ConvertContinuousIndexToNearestIndex(cindex, index);
106 return this->EvaluateAtIndex(index);
111 itkSetMacro(NeighborhoodRadius,
unsigned int);
112 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
122 unsigned int m_NeighborhoodRadius{};
126#ifndef ITK_MANUAL_INSTANTIATION
127# include "itkVectorMeanImageFunction.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 mean value in the neighborhood of a pixel in a Vector image.
~VectorMeanImageFunction() override=default
TInputImage InputImageType
typename NumericTraits< typename TInputImage::PixelType >::RealType RealType
RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
void PrintSelf(std::ostream &os, Indent indent) const override
RealType EvaluateAtIndex(const IndexType &index) const override
VectorMeanImageFunction()
RealType Evaluate(const PointType &point) 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