18 #ifndef itkScatterMatrixImageFunction_h
19 #define itkScatterMatrixImageFunction_h
44 template<
typename TInputImage,
typename TCoordRep =
float >
48 typename NumericTraits< typename TInputImage::PixelType::ValueType >::RealType >,
86 static constexpr
unsigned int ImageDimension = InputImageType::ImageDimension;
100 this->ConvertPointToNearestIndex(point, index);
101 return this->EvaluateAtIndex(index);
109 this->ConvertContinuousIndexToNearestIndex(cindex, index);
110 return this->EvaluateAtIndex(index);
115 itkSetMacro(NeighborhoodRadius,
unsigned int);
116 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
122 void PrintSelf(std::ostream & os,
Indent indent)
const override;
129 #ifndef ITK_MANUAL_INSTANTIATION
130 #include "itkScatterMatrixImageFunction.hxx"
Calculate the scatter matrix in the neighborhood of a pixel in a Vector image.
Light weight base class for most itk classes.
Define numeric traits for std::vector.
typename Superclass::PointType PointType
typename Superclass::OutputType OutputType
RealType Evaluate(const PointType &point) const override
typename Superclass::IndexType IndexType
ImageBaseType::IndexType IndexType
unsigned int m_NeighborhoodRadius
RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
typename Superclass::ContinuousIndexType ContinuousIndexType
TInputImage InputImageType
vnl_matrix< typename NumericTraits< typename InputImageType::PixelType::ValueType >::RealType > RealType
Evaluates a function of an image at specified position.