MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes
mds::img::CMeanValueSimilarity< V > Class Template Reference

Basic similarity measure comparing mean pixel value. More...

#include <mdsSimilarityMeasure.h>

Inheritance diagram for mds::img::CMeanValueSimilarity< 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 V tFeatureVector
 Base types.

Public Member Functions

double calculate (const tFeatureVector &v1, const tFeatureVector &v2)
 Calculates similarity between two given feature vectors.
 CMeanValueSimilarity (double dRho=DEFAULT_RHO)
 Default constructor.

Static Public Attributes

static const double DEFAULT_RHO = 500.0
 Default parameters.
static const double DEFAULT_THRESHOLD = 0.1

Protected Attributes

double m_dInvRho
 Parameter affecting sensitivity of the measure.

Detailed Description

template<class V>
class mds::img::CMeanValueSimilarity< V >

Basic similarity measure comparing mean pixel value.


Member Typedef Documentation

template<class V >
typedef V mds::img::CMeanValueSimilarity< V >::tFeatureVector

Base types.

Reimplemented from mds::img::CSimilarityMeasure< 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 

Constructor & Destructor Documentation

template<class V >
mds::img::CMeanValueSimilarity< V >::CMeanValueSimilarity ( double  dRho = DEFAULT_RHO)

Default constructor.


Member Function Documentation

template<class V >
double mds::img::CMeanValueSimilarity< V >::calculate ( const tFeatureVector v1,
const tFeatureVector v2 
)

Calculates similarity between two given feature vectors.


Member Data Documentation

template<class V >
const double CMeanValueSimilarity::DEFAULT_RHO = 500.0 [static]

Default parameters.

template<class V >
const double CMeanValueSimilarity::DEFAULT_THRESHOLD = 0.1 [static]
template<class V >
double mds::img::CMeanValueSimilarity< V >::m_dInvRho [protected]

Parameter affecting sensitivity of the measure.


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