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