18 #ifndef itkCovarianceImageFunction_h
19 #define itkCovarianceImageFunction_h
44 template<
typename TInputImage,
typename TCoordRep =
float >
48 typename NumericTraits< typename TInputImage::PixelType::ValueType >::RealType >,
85 itkStaticConstMacro(ImageDimension,
unsigned int,
86 InputImageType::ImageDimension);
101 this->ConvertPointToNearestIndex(point, index);
102 return this->EvaluateAtIndex(index);
110 this->ConvertContinuousIndexToNearestIndex(cindex, index);
111 return this->EvaluateAtIndex(index);
116 itkSetMacro(NeighborhoodRadius,
unsigned int);
117 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
123 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
132 #ifndef ITK_MANUAL_INSTANTIATION
133 #include "itkCovarianceImageFunction.hxx"
virtual RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
Superclass::OutputType OutputType
Light weight base class for most itk classes.
Superclass::ContinuousIndexType ContinuousIndexType
Calculate the covariance matrix in the neighborhood of a pixel in a Vector image. ...
TInputImage InputImageType
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
Superclass::PointType PointType
ImageBaseType::PointType PointType
~CovarianceImageFunction() override
Superclass::IndexType IndexType
virtual RealType Evaluate(const PointType &point) const override
Control indentation during Print() invocation.
vnl_matrix< typename NumericTraits< typename InputImageType::PixelType::ValueType >::RealType > RealType
Define additional traits for native types such as int or float.
CovarianceImageFunction Self
unsigned int m_NeighborhoodRadius
Evaluates a function of an image at specified position.
ImageFunction< TInputImage, vnl_matrix< typename NumericTraits< typename TInputImage::PixelType::ValueType >::RealType >, TCoordRep > Superclass
ImageBaseType::IndexType IndexType