18 #ifndef itkCovarianceImageFunction_h
19 #define itkCovarianceImageFunction_h
44 template <
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>,
85 static constexpr
unsigned int ImageDimension = InputImageType::ImageDimension;
88 using RealType = vnl_matrix<typename NumericTraits<typename InputImageType::PixelType::ValueType>::RealType>;
92 EvaluateAtIndex(
const IndexType & index)
const override;
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);
123 PrintSelf(std::ostream & os,
Indent indent)
const override;
126 unsigned int m_NeighborhoodRadius{ 1 };
130 #ifndef ITK_MANUAL_INSTANTIATION
131 # include "itkCovarianceImageFunction.hxx"