ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkDistanceMetric.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef unsigned int | MeasurementVectorSizeType |
typedef TVector | MeasurementVectorType |
typedef Array< double > | OriginType |
typedef SmartPointer< Self > | Pointer |
typedef DistanceMetric | Self |
typedef FunctionBase< TVector, double > | Superclass |
Public Member Functions | |
virtual double | Evaluate (const MeasurementVectorType &x) const =0 |
virtual double | Evaluate (const MeasurementVectorType &x1, const MeasurementVectorType &x2) const =0 |
virtual const char * | GetNameOfClass () const |
virtual const OriginType & | GetOrigin () |
virtual void | SetMeasurementVectorSize (MeasurementVectorSizeType s) |
void | SetOrigin (const OriginType &x) |
Private Attributes | |
MeasurementVectorSizeType | m_MeasurementVectorSize |
OriginType | m_Origin |
virtual MeasurementVectorSizeType | GetMeasurementVectorSize () const |
DistanceMetric () | |
virtual | ~DistanceMetric () |
void | PrintSelf (std::ostream &os, Indent indent) const |
this class declares common interfaces for distance functions.
As a function derived from FunctionBase, users use Evaluate method to get result.
To use this function users should first set the origin by calling SetOrigin() function, then call Evaluate() method with a point to get the distance between the origin point and the evaluation point.
Definition at line 47 of file itkDistanceMetric.h.
typedef SmartPointer< const Self > itk::Statistics::DistanceMetric< TVector >::ConstPointer |
Reimplemented from itk::FunctionBase< TVector, double >.
Reimplemented in itk::Statistics::MahalanobisDistanceMetric< TVector >, itk::Statistics::ManhattanDistanceMetric< TVector >, itk::Statistics::EuclideanSquareDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< TVector >, and itk::Statistics::EuclideanDistanceMetric< ParameterType >.
Definition at line 54 of file itkDistanceMetric.h.
typedef unsigned int itk::Statistics::DistanceMetric< TVector >::MeasurementVectorSizeType |
declare Measurement vector component type Type used to represent the number of components oft he MeasurementVectorType
Reimplemented in itk::Statistics::MahalanobisDistanceMetric< TVector >, itk::Statistics::ManhattanDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< TVector >, itk::Statistics::EuclideanSquareDistanceMetric< TVector >, and itk::Statistics::EuclideanDistanceMetric< ParameterType >.
Definition at line 63 of file itkDistanceMetric.h.
typedef TVector itk::Statistics::DistanceMetric< TVector >::MeasurementVectorType |
declare the MeasurementVector type
Reimplemented in itk::Statistics::MahalanobisDistanceMetric< TVector >, itk::Statistics::EuclideanSquareDistanceMetric< TVector >, itk::Statistics::ManhattanDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< TVector >, and itk::Statistics::EuclideanDistanceMetric< ParameterType >.
Definition at line 57 of file itkDistanceMetric.h.
typedef Array< double > itk::Statistics::DistanceMetric< TVector >::OriginType |
Reimplemented in itk::Statistics::EuclideanDistanceMetric< TVector >, and itk::Statistics::EuclideanDistanceMetric< ParameterType >.
Definition at line 66 of file itkDistanceMetric.h.
typedef SmartPointer< Self > itk::Statistics::DistanceMetric< TVector >::Pointer |
Reimplemented from itk::FunctionBase< TVector, double >.
Reimplemented in itk::Statistics::MahalanobisDistanceMetric< TVector >, itk::Statistics::ManhattanDistanceMetric< TVector >, itk::Statistics::EuclideanSquareDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< TVector >, and itk::Statistics::EuclideanDistanceMetric< ParameterType >.
Definition at line 53 of file itkDistanceMetric.h.
typedef DistanceMetric itk::Statistics::DistanceMetric< TVector >::Self |
Standard typedefs
Reimplemented from itk::FunctionBase< TVector, double >.
Reimplemented in itk::Statistics::MahalanobisDistanceMetric< TVector >, itk::Statistics::ManhattanDistanceMetric< TVector >, itk::Statistics::EuclideanSquareDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< TVector >, and itk::Statistics::EuclideanDistanceMetric< ParameterType >.
Definition at line 51 of file itkDistanceMetric.h.
typedef FunctionBase< TVector, double > itk::Statistics::DistanceMetric< TVector >::Superclass |
Reimplemented from itk::FunctionBase< TVector, double >.
Reimplemented in itk::Statistics::MahalanobisDistanceMetric< TVector >, itk::Statistics::ManhattanDistanceMetric< TVector >, itk::Statistics::EuclideanSquareDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< TVector >, and itk::Statistics::EuclideanDistanceMetric< ParameterType >.
Definition at line 52 of file itkDistanceMetric.h.
itk::Statistics::DistanceMetric< TVector >::DistanceMetric | ( | ) | [protected] |
Get method for the length of the measurement vector
virtual itk::Statistics::DistanceMetric< TVector >::~DistanceMetric | ( | ) | [inline, protected, virtual] |
Get method for the length of the measurement vector
Definition at line 134 of file itkDistanceMetric.h.
virtual double itk::Statistics::DistanceMetric< TVector >::Evaluate | ( | const MeasurementVectorType & | x | ) | const [pure virtual] |
Gets the distance between the origin point and x. This function work with SetOrigin() function.
Implements itk::FunctionBase< TVector, double >.
Implemented in itk::Statistics::MahalanobisDistanceMetric< TVector >, itk::Statistics::ManhattanDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< ParameterType >, and itk::Statistics::EuclideanSquareDistanceMetric< TVector >.
virtual double itk::Statistics::DistanceMetric< TVector >::Evaluate | ( | const MeasurementVectorType & | x1, |
const MeasurementVectorType & | x2 | ||
) | const [pure virtual] |
Gets the distance between x1 and x2. This method is used by KdTreeKMeans estimators. When the estimator is refactored, this method should be removed. Distance between two measurement vectors can be computed by setting one of them as an origin of the distane and using the Evaluate method with a single argument
Implemented in itk::Statistics::MahalanobisDistanceMetric< TVector >, itk::Statistics::ManhattanDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< ParameterType >, and itk::Statistics::EuclideanSquareDistanceMetric< TVector >.
virtual MeasurementVectorSizeType itk::Statistics::DistanceMetric< TVector >::GetMeasurementVectorSize | ( | ) | const [virtual] |
Get method for the length of the measurement vector
virtual const char* itk::Statistics::DistanceMetric< TVector >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::FunctionBase< TVector, double >.
Reimplemented in itk::Statistics::MahalanobisDistanceMetric< TVector >, itk::Statistics::ManhattanDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< TVector >, itk::Statistics::EuclideanDistanceMetric< ParameterType >, and itk::Statistics::EuclideanSquareDistanceMetric< TVector >.
virtual const OriginType& itk::Statistics::DistanceMetric< TVector >::GetOrigin | ( | ) | [virtual] |
void itk::Statistics::DistanceMetric< TVector >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Get method for the length of the measurement vector
Reimplemented from itk::Object.
Reimplemented in itk::Statistics::MahalanobisDistanceMetric< TVector >.
virtual void itk::Statistics::DistanceMetric< TVector >::SetMeasurementVectorSize | ( | MeasurementVectorSizeType | s | ) | [inline, virtual] |
Set method for the length of the measurement vector
Reimplemented in itk::Statistics::MahalanobisDistanceMetric< TVector >.
Definition at line 93 of file itkDistanceMetric.h.
void itk::Statistics::DistanceMetric< TVector >::SetOrigin | ( | const OriginType & | x | ) |
Sets the origin point that will be used for the single point version Evaluate() function. This function is necessary part of implementing the Evaluate() interface. The argument of SetOrigin() must be of type DistanceMetric::OriginType, which in most cases will be different from the TVector type. This is necessary because often times the origin would be a mean, or a vector representative of a collection of vectors.
MeasurementVectorSizeType itk::Statistics::DistanceMetric< TVector >::m_MeasurementVectorSize [private] |
Number of components in the MeasurementVectorType
Definition at line 143 of file itkDistanceMetric.h.
OriginType itk::Statistics::DistanceMetric< TVector >::m_Origin [private] |
Definition at line 140 of file itkDistanceMetric.h.