ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkDistanceToCentroidMembershipFunction.h>
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.
Public Member Functions | |
double | Evaluate (const MeasurementVectorType &measurement) const override |
const CentroidType & | GetCentroid () const |
virtual const DistanceMetricType * | GetDistanceMetric () const |
virtual DistanceMetricType * | GetModifiableDistanceMetric () |
void | SetCentroid (const CentroidType ¢roid) |
virtual void | SetDistanceMetric (DistanceMetricType *_arg) |
void | SetMeasurementVectorSize (MeasurementVectorSizeType) override |
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 |
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 noexceptoverride |
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 | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Protected Member Functions | |
DistanceToCentroidMembershipFunction () | |
LightObject::Pointer | InternalClone () const override |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~DistanceToCentroidMembershipFunction () override=default | |
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 () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
~Object () override | |
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 () |
Private Attributes | |
DistanceMetricPointer | m_DistanceMetric |
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 | |
std::atomic< int > | m_ReferenceCount |
using itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::CentroidType = typename DistanceMetricType::OriginType |
Definition at line 78 of file itkDistanceToCentroidMembershipFunction.h.
using itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::ConstPointer = SmartPointer< const Self > |
Definition at line 55 of file itkDistanceToCentroidMembershipFunction.h.
using itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::DistanceMetricPointer = typename DistanceMetricType::Pointer |
Definition at line 77 of file itkDistanceToCentroidMembershipFunction.h.
using itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::DistanceMetricType = DistanceMetric< MeasurementVectorType > |
Type of the DistanceMetric to use
Definition at line 76 of file itkDistanceToCentroidMembershipFunction.h.
using itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::MeasurementVectorSizeType = typename Superclass::MeasurementVectorSizeType |
Typedef to represent the length of measurement vectors
Definition at line 70 of file itkDistanceToCentroidMembershipFunction.h.
using itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::MeasurementVectorType = TVector |
Typedef alias for the measurement vectors
Definition at line 67 of file itkDistanceToCentroidMembershipFunction.h.
using itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::MembershipFunctionPointer = typename Superclass::Pointer |
SmartPointer class for superclass
Definition at line 64 of file itkDistanceToCentroidMembershipFunction.h.
using itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::Pointer = SmartPointer< Self > |
Definition at line 54 of file itkDistanceToCentroidMembershipFunction.h.
using itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::Self = DistanceToCentroidMembershipFunction |
Standard class type aliases
Definition at line 52 of file itkDistanceToCentroidMembershipFunction.h.
using itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::Superclass = MembershipFunctionBase< TVector > |
Definition at line 53 of file itkDistanceToCentroidMembershipFunction.h.
|
protected |
|
overrideprotecteddefault |
|
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::MembershipFunctionBase< TVector >.
const CentroidType& itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::GetCentroid | ( | ) | const |
Get the centroid of the class (requested from the DistanceMetric
|
virtual |
|
virtual |
Get the DistanceMetric used by the MembershipFunction
|
virtual |
Strandard macros
Reimplemented from itk::Statistics::MembershipFunctionBase< TVector >.
|
overrideprotectedvirtual |
Return a copy of the current membership function
Reimplemented from itk::LightObject.
|
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::Object.
void itk::Statistics::DistanceToCentroidMembershipFunction< TVector >::SetCentroid | ( | const CentroidType & | centroid | ) |
Get the DistanceMetric used by the MembershipFunction. This is a non-const version that allows you to configure the distance function directly. Set the centroid of the class (propagated to the DistanceMetric)
|
virtual |
Set the DistanceMetric to be used when calling the Evaluate() method
|
override |
Set the length of each measurement vector.
|
private |
Definition at line 110 of file itkDistanceToCentroidMembershipFunction.h.