ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkMahalanobisDistanceMetric.h>
MahalanobisDistanceMetric class computes a Mahalanobis distance given a mean and covariance.
Definition at line 46 of file itkMahalanobisDistanceMetric.h.
Public Member Functions | |
double | Evaluate (const MeasurementVectorType &measurement) const override |
double | Evaluate (const MeasurementVectorType &x1, const MeasurementVectorType &x2) const override |
virtual const CovarianceMatrixType & | GetCovariance () const |
virtual double | GetDoubleMax () const |
virtual const CovarianceMatrixType & | GetInverseCovariance () const |
const MeanVectorType & | GetMean () const |
void | SetCovariance (const CovarianceMatrixType &cov) |
virtual void | SetDoubleMax (double _arg) |
void | SetInverseCovariance (const CovarianceMatrixType &invcov) |
void | SetMean (const MeanVectorType &mean) |
virtual void | SetMeasurementVectorSize (MeasurementVectorSizeType) override |
virtual void | SetEpsilon (double _arg) |
virtual double | GetEpsilon () const |
Public Member Functions inherited from itk::Statistics::DistanceMetric< TVector > | |
virtual MeasurementVectorSizeType | GetMeasurementVectorSize () const |
virtual const OriginType & | GetOrigin () const |
void | SetOrigin (const OriginType &x) |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) 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 |
virtual void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) override |
virtual void | UnRegister () const noexceptoverride |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Protected Member Functions | |
MahalanobisDistanceMetric () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual | ~MahalanobisDistanceMetric (void) |
Protected Member Functions inherited from itk::Statistics::DistanceMetric< TVector > | |
DistanceMetric () | |
virtual | ~DistanceMetric () |
Protected Member Functions inherited from itk::FunctionBase< TVector, double > | |
FunctionBase () | |
~FunctionBase () | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Member Functions | |
void | CalculateInverseCovariance () |
Private Attributes | |
CovarianceMatrixType | m_Covariance |
double | m_DoubleMax |
double | m_Epsilon |
CovarianceMatrixType | m_InverseCovariance |
MeanVectorType | m_Mean |
virtual const char * | GetNameOfClass () const |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
static Pointer | New () |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef SmartPointer< const Self > itk::Statistics::MahalanobisDistanceMetric< TVector >::ConstPointer |
Definition at line 54 of file itkMahalanobisDistanceMetric.h.
typedef vnl_matrix< double > itk::Statistics::MahalanobisDistanceMetric< TVector >::CovarianceMatrixType |
Type used for representing the covariance matrix
Definition at line 71 of file itkMahalanobisDistanceMetric.h.
typedef Superclass::OriginType itk::Statistics::MahalanobisDistanceMetric< TVector >::MeanVectorType |
Type used for representing the mean vector
Definition at line 68 of file itkMahalanobisDistanceMetric.h.
typedef Superclass::MeasurementVectorSizeType itk::Statistics::MahalanobisDistanceMetric< TVector >::MeasurementVectorSizeType |
Typedef to represent the length of measurement vectors
Definition at line 65 of file itkMahalanobisDistanceMetric.h.
typedef Superclass::MeasurementVectorType itk::Statistics::MahalanobisDistanceMetric< TVector >::MeasurementVectorType |
Typedef to represent the measurement vector type
Definition at line 58 of file itkMahalanobisDistanceMetric.h.
typedef SmartPointer< Self > itk::Statistics::MahalanobisDistanceMetric< TVector >::Pointer |
Definition at line 53 of file itkMahalanobisDistanceMetric.h.
typedef MahalanobisDistanceMetric itk::Statistics::MahalanobisDistanceMetric< TVector >::Self |
Standard class typedefs
Definition at line 51 of file itkMahalanobisDistanceMetric.h.
typedef DistanceMetric< TVector > itk::Statistics::MahalanobisDistanceMetric< TVector >::Superclass |
Definition at line 52 of file itkMahalanobisDistanceMetric.h.
|
protected |
|
inlineprotectedvirtual |
Definition at line 116 of file itkMahalanobisDistanceMetric.h.
|
private |
|
virtual |
Strandard macros
Reimplemented from itk::Object.
|
overridevirtual |
Method to get probability of an instance. The return value is the value of the density function, not probability.
Implements itk::Statistics::DistanceMetric< TVector >.
|
overridevirtual |
Gets the distance between x1 and x2.
Implements itk::Statistics::DistanceMetric< TVector >.
|
virtual |
Method to get covariance matrix
|
virtual |
|
virtual |
Set/Get tolerance values
|
virtual |
Method to get covariance matrix
const MeanVectorType& itk::Statistics::MahalanobisDistanceMetric< TVector >::GetMean | ( | ) | const |
Method to get mean
|
virtual |
Strandard macros
Reimplemented from itk::Statistics::DistanceMetric< TVector >.
|
static |
Strandard macros
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Statistics::DistanceMetric< TVector >.
void itk::Statistics::MahalanobisDistanceMetric< TVector >::SetCovariance | ( | const CovarianceMatrixType & | cov | ) |
Method to set covariance matrix Also, this function calculates inverse covariance and pre factor of MahalanobisDistance Distribution to speed up GetProbability
|
virtual |
|
virtual |
Set/Get tolerance values
void itk::Statistics::MahalanobisDistanceMetric< TVector >::SetInverseCovariance | ( | const CovarianceMatrixType & | invcov | ) |
Method to set inverse covariance matrix
void itk::Statistics::MahalanobisDistanceMetric< TVector >::SetMean | ( | const MeanVectorType & | mean | ) |
Method to set mean
|
overridevirtual |
Set the length of each measurement vector.
Reimplemented from itk::Statistics::DistanceMetric< TVector >.
|
private |
Definition at line 121 of file itkMahalanobisDistanceMetric.h.
|
private |
Definition at line 128 of file itkMahalanobisDistanceMetric.h.
|
private |
Definition at line 127 of file itkMahalanobisDistanceMetric.h.
|
private |
Definition at line 125 of file itkMahalanobisDistanceMetric.h.
|
private |
Definition at line 120 of file itkMahalanobisDistanceMetric.h.