ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::Statistics::DistanceToCentroidMembershipFunction< TVector > Class Template Reference

#include <itkDistanceToCentroidMembershipFunction.h>

+ Inheritance diagram for itk::Statistics::DistanceToCentroidMembershipFunction< TVector >:
+ Collaboration diagram for itk::Statistics::DistanceToCentroidMembershipFunction< TVector >:

List of all members.

Public Types

typedef
DistanceMetricType::OriginType 
CentroidType
typedef SmartPointer< const SelfConstPointer
typedef DistanceMetricType::Pointer DistanceMetricPointer
typedef DistanceMetric
< MeasurementVectorType
DistanceMetricType
typedef
Superclass::MeasurementVectorSizeType 
MeasurementVectorSizeType
typedef TVector MeasurementVectorType
typedef Superclass::Pointer MembershipFunctionPointer
typedef SmartPointer< SelfPointer
typedef
DistanceToCentroidMembershipFunction 
Self
typedef MembershipFunctionBase
< TVector > 
Superclass

Public Member Functions

double Evaluate (const MeasurementVectorType &measurement) const
const CentroidTypeGetCentroid () const
virtual const DistanceMetricTypeGetDistanceMetric ()
virtual DistanceMetricTypeGetDistanceMetric ()
void SetCentroid (const CentroidType &centroid)
virtual void SetDistanceMetric (DistanceMetricType *_arg)
virtual void SetMeasurementVectorSize (MeasurementVectorSizeType)

Protected Member Functions

 DistanceToCentroidMembershipFunction (void)
virtual LightObject::Pointer InternalClone () const
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~DistanceToCentroidMembershipFunction (void)

Private Member Functions

 DistanceToCentroidMembershipFunction (const Self &)
void operator= (const Self &)

Private Attributes

DistanceMetricPointer m_DistanceMetric
virtual const char * GetNameOfClass () const
virtual ::itk::LightObject::Pointer CreateAnother (void) const
static Pointer New ()

Detailed Description

template<class TVector>
class itk::Statistics::DistanceToCentroidMembershipFunction< TVector >

DistanceToCentroidMembershipFunction models class membership using a distance metric.

DistanceToCentroidMembershipFunction is a subclass of MembershipFunctionBase that models class membership using the distance to the centroid of the class. A choice of distance metric can be specified using the SetDistanceMetric() method. Options include EuclideanDistanceMetric, EuclideanSquaredDistanceMetric, and ManhattenDistanceMetric. The centroid of the class is specified using the SetCentroid() method. Any other parameters to control the distance function evaluation have to be set directly on the distance function itself.

Definition at line 45 of file itkDistanceToCentroidMembershipFunction.h.


Member Typedef Documentation

Definition at line 77 of file itkDistanceToCentroidMembershipFunction.h.

template<class TVector >
typedef SmartPointer< const Self > itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::ConstPointer

Definition at line 76 of file itkDistanceToCentroidMembershipFunction.h.

Type of the DistanceMetric to use

Definition at line 75 of file itkDistanceToCentroidMembershipFunction.h.

Typedef to represent the length of measurement vectors

Reimplemented from itk::Statistics::MembershipFunctionBase< TVector >.

Definition at line 69 of file itkDistanceToCentroidMembershipFunction.h.

template<class TVector >
typedef TVector itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::MeasurementVectorType

Typedef alias for the measurement vectors

Reimplemented from itk::Statistics::MembershipFunctionBase< TVector >.

Definition at line 65 of file itkDistanceToCentroidMembershipFunction.h.

SmartPointer class for superclass

Definition at line 58 of file itkDistanceToCentroidMembershipFunction.h.

template<class TVector >
typedef SmartPointer< Self > itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::Pointer

Standard class typedefs

Reimplemented from itk::Statistics::MembershipFunctionBase< TVector >.

Definition at line 50 of file itkDistanceToCentroidMembershipFunction.h.

template<class TVector >
typedef MembershipFunctionBase< TVector > itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::Superclass

Constructor & Destructor Documentation

template<class TVector >
itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::DistanceToCentroidMembershipFunction ( void  ) [protected]
template<class TVector >
virtual itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::~DistanceToCentroidMembershipFunction ( void  ) [inline, protected, virtual]

Definition at line 103 of file itkDistanceToCentroidMembershipFunction.h.

template<class TVector >
itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::DistanceToCentroidMembershipFunction ( const Self ) [private]

Member Function Documentation

template<class TVector >
virtual::itk::LightObject::Pointer itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::CreateAnother ( void  ) const [virtual]

Strandard macros

Reimplemented from itk::Object.

template<class TVector >
double itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::Evaluate ( const MeasurementVectorType measurement) const [virtual]

Method to get probability of an instance. The return value is the value of the density function, not probability.

Implements itk::Statistics::MembershipFunctionBase< TVector >.

template<class TVector >
const CentroidType& itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::GetCentroid ( ) const

Get the centroid of the class (requested from the DistanceMetric

template<class TVector >
virtual const DistanceMetricType* itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::GetDistanceMetric ( ) [virtual]

Get the DistanceMetric used by the MembershipFunction

template<class TVector >
virtual DistanceMetricType* itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::GetDistanceMetric ( ) [virtual]

Get the DistanceMetric used by the MembershipFunction. This is a non-const version that allows you to configure the distance function directly.

template<class TVector >
virtual const char* itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::GetNameOfClass ( ) const [virtual]

Strandard macros

Reimplemented from itk::Statistics::MembershipFunctionBase< TVector >.

template<class TVector >
virtual LightObject::Pointer itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::InternalClone ( ) const [protected, virtual]

Return a copy of the current membership function

Reimplemented from itk::LightObject.

template<class TVector >
static Pointer itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::New ( ) [static]

Strandard macros

Reimplemented from itk::Object.

template<class TVector >
void itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::operator= ( const Self ) [private]

Mutex lock to protect modification to the reference count

Reimplemented from itk::Statistics::MembershipFunctionBase< TVector >.

template<class TVector >
void itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

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::MembershipFunctionBase< TVector >.

template<class TVector >
void itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::SetCentroid ( const CentroidType centroid)

Set the centroid of the class (propagated to the DistanceMetric)

template<class TVector >
virtual void itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::SetDistanceMetric ( DistanceMetricType _arg) [virtual]

Set the DistanceMetric to be used when calling the Evaluate() method

template<class TVector >
virtual void itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::SetMeasurementVectorSize ( MeasurementVectorSizeType  ) [virtual]

Set the length of each measurement vector.


Member Data Documentation

Definition at line 113 of file itkDistanceToCentroidMembershipFunction.h.


The documentation for this class was generated from the following file: