18#ifndef itkCovarianceImageFunction_h
19#define itkCovarianceImageFunction_h
44template <
typename TInputImage,
typename TCoordRep =
float>
47 vnl_matrix<typename NumericTraits<typename TInputImage::PixelType::ValueType>::RealType>,
57 vnl_matrix<typename NumericTraits<typename TInputImage::PixelType::ValueType>::RealType>,
73 using typename Superclass::OutputType;
79 using typename Superclass::ContinuousIndexType;
85 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
88 using RealType = vnl_matrix<typename NumericTraits<typename InputImageType::PixelType::ValueType>::RealType>;
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);
126 unsigned int m_NeighborhoodRadius{ 1 };
130#ifndef ITK_MANUAL_INSTANTIATION
131# include "itkCovarianceImageFunction.hxx"
Calculate the covariance matrix in the neighborhood of a pixel in a Vector image.
~CovarianceImageFunction() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
CovarianceImageFunction()
RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
RealType Evaluate(const PointType &point) const override
RealType EvaluateAtIndex(const IndexType &index) const override
TInputImage InputImageType
vnl_matrix< typename NumericTraits< typename InputImageType::PixelType::ValueType >::RealType > RealType
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.
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