18#ifndef itkMahalanobisDistanceThresholdImageFunction_h
19#define itkMahalanobisDistanceThresholdImageFunction_h
49template <
typename TInputImage,
typename TCoordRep =
float>
68 using typename Superclass::InputImageType;
74 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
83 using typename Superclass::ContinuousIndexType;
139 itkGetConstReferenceMacro(Threshold,
double);
140 itkSetMacro(Threshold,
double);
168 double m_Threshold{};
184#ifndef ITK_MANUAL_INSTANTIATION
185# include "itkMahalanobisDistanceThresholdImageFunction.hxx"
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.
Returns true if the pixel value of a vector image has a Mahalanobis distance below the value specifie...
bool EvaluateAtIndex(const IndexType &index) const override
void PrintSelf(std::ostream &os, Indent indent) const override
virtual double EvaluateDistanceAtIndex(const IndexType &index) const
vnl_vector< double > MeanVectorType
~MahalanobisDistanceThresholdImageFunction() override=default
virtual double EvaluateDistance(const PointType &point) const
void SetMean(const MeanVectorType &mean)
bool Evaluate(const PointType &point) const override
vnl_matrix< double > CovarianceMatrixType
typename MahalanobisDistanceFunctionType::Pointer MahalanobisDistanceFunctionPointer
bool EvaluateAtContinuousIndex(const ContinuousIndexType &index) const override
typename TInputImage::PixelType PixelType
void SetCovariance(const CovarianceMatrixType &covariance)
MahalanobisDistanceThresholdImageFunction()
A templated class holding a geometric point in n-Dimensional space.
MahalanobisDistanceMembershipFunction models class membership using Mahalanobis distance.
SmartPointer< Self > Pointer
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