ITK
5.2.0
Insight Toolkit
|
#include <itkMahalanobisDistanceMembershipFunction.h>
Additional Inherited Members | |
Public Member Functions inherited from itk::Statistics::MembershipFunctionBase< TVector > | |
virtual MeasurementVectorSizeType | GetMeasurementVectorSize () const |
virtual void | SetMeasurementVectorSize (MeasurementVectorSizeType s) |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions inherited from itk::Statistics::MembershipFunctionBase< TVector > | |
MembershipFunctionBase () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~MembershipFunctionBase () override=default | |
Protected Member Functions inherited from itk::FunctionBase< TVector, double > | |
FunctionBase ()=default | |
~FunctionBase () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
~Object () override | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
Protected Member Functions inherited from itk::LightObject | |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
MahalanobisDistanceMembershipFunction models class membership using Mahalanobis distance.
MahalanobisDistanceMembershipFunction is a subclass of MembershipFunctionBase that models class membership (or likelihood) using the Mahalanobis distance. The mean and covariance structure of the Mahalanobis distance are established using the methods SetMean() and SetCovariance(). The mean is a vector-type that is the same vector-type as the measurement vector but guaranteed to have a real element type. For instance, if the measurement type is an Vector<int,3>, then the mean is Vector<double,3>. If the measurement type is a VariableLengthVector<float>, then the mean is VariableLengthVector<double>. In contrast to this behavior, the covariance is always a VariableSizeMatrix<double>.
Note that this membership function does not return a probability density function in contrast to the GaussianMembershipFunction.
Note, as is the case in other packages (MATLAB, R), the value returned by this membership function is the squared distance.
If the covariance is singular or nearly singular, the membership function behaves somewhat like (the opposite of) an impulse located at the mean. In this case, we specify the covariance to be a diagonal matrix with large values along the diagonal. This membership function, therefore, will return large but differentiable values everywhere and decay to zero sharply near the mean.
Definition at line 62 of file itkMahalanobisDistanceMembershipFunction.h.
using itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::ConstPointer = SmartPointer<const Self> |
Definition at line 69 of file itkMahalanobisDistanceMembershipFunction.h.
using itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::CovarianceMatrixType = VariableSizeMatrix<double> |
Type of the covariance matrix
Definition at line 91 of file itkMahalanobisDistanceMembershipFunction.h.
using itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::MeanVectorType = MeasurementVectorRealType |
SmartPointer class for superclass
Definition at line 88 of file itkMahalanobisDistanceMembershipFunction.h.
using itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::MeasurementVectorRealType = typename itk::NumericTraits<MeasurementVectorType>::RealType |
Type of the mean vector. RealType on a vector-type is the same vector-type but with a real element type.
Definition at line 87 of file itkMahalanobisDistanceMembershipFunction.h.
using itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::MeasurementVectorSizeType = typename Superclass::MeasurementVectorSizeType |
Typedef to represent the length of measurement vectors
Definition at line 83 of file itkMahalanobisDistanceMembershipFunction.h.
using itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::MeasurementVectorType = TVector |
Typedef alias for the measurement vectors
Definition at line 80 of file itkMahalanobisDistanceMembershipFunction.h.
using itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::MembershipFunctionPointer = typename Superclass::Pointer |
SmartPointer class for superclass
Definition at line 77 of file itkMahalanobisDistanceMembershipFunction.h.
using itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::Pointer = SmartPointer<Self> |
Definition at line 68 of file itkMahalanobisDistanceMembershipFunction.h.
using itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::Self = MahalanobisDistanceMembershipFunction |
Standard class type aliases
Definition at line 66 of file itkMahalanobisDistanceMembershipFunction.h.
using itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::Superclass = MembershipFunctionBase<TVector> |
Definition at line 67 of file itkMahalanobisDistanceMembershipFunction.h.
|
protected |
SmartPointer class for superclass
|
overrideprotecteddefault |
SmartPointer class for superclass
|
virtual |
SmartPointer class for superclass
Reimplemented from itk::Object.
|
overridevirtual |
Evaluate the Mahalanobis distance of a measurement using the prescribed mean and covariance. Note that the Mahalanobis distance is not a probability density. The square of the distance is returned.
Implements itk::Statistics::MembershipFunctionBase< TVector >.
|
virtual |
Get the covariance matrix. Covariance matrix is a VariableSizeMatrix of doubles.
|
virtual |
Get the mean of the Mahalanobis distance. Mean is a vector type similar to the measurement type but with a real element type.
|
virtual |
Strandard macros
Reimplemented from itk::Statistics::MembershipFunctionBase< TVector >.
|
overridevirtual |
Method to clone a membership function, i.e. create a new instance of the same type of membership function and configure its ivars to match.
Reimplemented from itk::LightObject.
|
static |
SmartPointer class for superclass
|
overrideprotectedvirtual |
SmartPointer class for superclass
Reimplemented from itk::Object.
void itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::SetCovariance | ( | const CovarianceMatrixType & | cov | ) |
Set the covariance matrix. Covariance matrix is a VariableSizeMatrix of doubles. The inverse of the covariance matrix is calculated whenever the covariance matrix is changed.
void itk::Statistics::MahalanobisDistanceMembershipFunction< TVector >::SetMean | ( | const MeanVectorType & | mean | ) |
Set the mean used in the Mahalanobis distance. Mean is a vector type similar to the measurement type but with a real element type.
|
private |
SmartPointer class for superclass
Definition at line 134 of file itkMahalanobisDistanceMembershipFunction.h.
|
private |
Boolean to cache whether the covariance is singular or nearly singular
Definition at line 141 of file itkMahalanobisDistanceMembershipFunction.h.
|
private |
SmartPointer class for superclass
Definition at line 138 of file itkMahalanobisDistanceMembershipFunction.h.
|
private |
SmartPointer class for superclass
Definition at line 133 of file itkMahalanobisDistanceMembershipFunction.h.