MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Static Public Member Functions
mds::img::CUnion< R, V > Class Template Reference

The union distance measure. More...

#include <mdsDistanceMeasure.h>

Inheritance diagram for mds::img::CUnion< R, V >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { FEATURE_VECTOR_MUST_BE_GIVEN = V::CLASS_FEATURE_VECTOR }
 Check that V is a feature vector type. More...
typedef CDistanceMeasure< V > tBase
typedef tBase::tFeatureVector tFeatureVector
 Feature vector type.

Static Public Member Functions

static double calculate (const tFeatureVector &v1, const tFeatureVector &v2)
 Calculates distance between two given feature vectors.

Detailed Description

template<typename R, class V>
class mds::img::CUnion< R, V >

The union distance measure.


Member Typedef Documentation

template<typename R , class V >
typedef CDistanceMeasure<V> mds::img::CUnion< R, V >::tBase
template<typename R , class V >
typedef tBase::tFeatureVector mds::img::CUnion< R, V >::tFeatureVector

Feature vector type.

Reimplemented from mds::img::CDistanceMeasure< V >.


Member Enumeration Documentation

template<class V >
anonymous enum [inherited]

Check that V is a feature vector type.

You will see name of this enum somewhere in compiler error message if the type V can't be used.

Enumerator:
FEATURE_VECTOR_MUST_BE_GIVEN 

Member Function Documentation

template<typename R , class V >
static double mds::img::CUnion< R, V >::calculate ( const tFeatureVector v1,
const tFeatureVector v2 
) [static]

Calculates distance between two given feature vectors.

  • Features must be greater then zero!

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