Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::PreEuclideanDistanceFunction Class Reference

#include <PreEuclideanDistanceFunction.hpp>

Inheritance diagram for Bial::PreEuclideanDistanceFunction:
Inheritance graph
Collaboration diagram for Bial::PreEuclideanDistanceFunction:
Collaboration graph

Public Member Functions

void Foo () const
 Foo function just to implement pure virtual function from parent class. More...
 
- Public Member Functions inherited from Bial::DistanceFunction< PreEuclideanDistanceFunction >
virtual ~DistanceFunction ()
 Virtual destructor required for virtual classes. More...
 

Static Public Member Functions

static void SetPreEuclideanDistanceFunction (size_t maximum_distance)
 Basic Constructor. More...
 
template<class D >
static double Distance (const D *src, const size_t dms)
 Returns the distance from origing to src. More...
 
static double Distance (const char *src, const size_t dms)
 
static double Distance (const uchar *src, const size_t dms)
 
static double Distance (const short *src, const size_t dms)
 
static double Distance (const int *src, const size_t dms)
 
static double Distance (const uint *src, const size_t dms)
 
static double Distance (const ulint *src, const size_t dms)
 
static double Distance (const llint *src, const size_t dms)
 
static double Distance (const ullint *src, const size_t dms)
 
static double Distance (const float *src, const size_t dms)
 
static double Distance (const double *src, const size_t dms)
 
template<class D >
static double Distance (const D *src, const D *tgt, const size_t dms)
 Returns the distance from src to tgt. More...
 
static double Distance (const char *src, const char *tgt, const size_t dms)
 
static double Distance (const uchar *src, const uchar *tgt, const size_t dms)
 
static double Distance (const short *src, const short *tgt, const size_t dms)
 
static double Distance (const int *src, const int *tgt, const size_t dms)
 
static double Distance (const uint *src, const uint *tgt, const size_t dms)
 
static double Distance (const ulint *src, const ulint *tgt, const size_t dms)
 
static double Distance (const llint *src, const llint *tgt, const size_t dms)
 
static double Distance (const ullint *src, const ullint *tgt, const size_t dms)
 
static double Distance (const float *src, const float *tgt, const size_t dms)
 
static double Distance (const double *src, const double *tgt, const size_t dms)
 
- Static Public Member Functions inherited from Bial::DistanceFunction< PreEuclideanDistanceFunction >
static double Distance (const D *src, const size_t dms)
 Returns the distance from origing to src. More...
 
static double Distance (const char *src, const size_t dms)
 
static double Distance (const uchar *src, const size_t dms)
 
static double Distance (const short *src, const size_t dms)
 
static double Distance (const int *src, const size_t dms)
 
static double Distance (const uint *src, const size_t dms)
 
static double Distance (const ulint *src, const size_t dms)
 
static double Distance (const llint *src, const size_t dms)
 
static double Distance (const ullint *src, const size_t dms)
 
static double Distance (const float *src, const size_t dms)
 
static double Distance (const double *src, const size_t dms)
 
static double Distance (const D *src, const D *tgt, const size_t dms)
 Returns the distance from src to tgt. More...
 
static double Distance (const char *src, const char *tgt, const size_t dms)
 
static double Distance (const uchar *src, const uchar *tgt, const size_t dms)
 
static double Distance (const short *src, const short *tgt, const size_t dms)
 
static double Distance (const int *src, const int *tgt, const size_t dms)
 
static double Distance (const uint *src, const uint *tgt, const size_t dms)
 
static double Distance (const ulint *src, const ulint *tgt, const size_t dms)
 
static double Distance (const llint *src, const llint *tgt, const size_t dms)
 
static double Distance (const ullint *src, const ullint *tgt, const size_t dms)
 
static double Distance (const float *src, const float *tgt, const size_t dms)
 
static double Distance (const double *src, const double *tgt, const size_t dms)
 

Detailed Description

Definition at line 19 of file PreEuclideanDistanceFunction.hpp.

Member Function Documentation

template<class D >
double Bial::PreEuclideanDistanceFunction::Distance ( const D *  src,
const size_t  dms 
)
static

Returns the distance from origing to src.

Date
2013/Jun/21
Parameters
srcSource array.
dmsNumber of dimensions
Returns
Distace from origing to src.
Warning
none.

Definition at line 103 of file PreEuclideanDistanceFunction.hpp.

static double Bial::PreEuclideanDistanceFunction::Distance ( const char *  src,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const uchar src,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const short *  src,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const int *  src,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const uint src,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const ulint src,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const llint src,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const ullint src,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const float *  src,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const double *  src,
const size_t  dms 
)
static
template<class D >
double Bial::PreEuclideanDistanceFunction::Distance ( const D *  src,
const D *  tgt,
const size_t  dms 
)
static

Returns the distance from src to tgt.

Date
2013/Jun/21
Parameters
srcSource array.
tgtTarget array.
dmsNumber of dimensions
Returns
Distace from src to tgt.
Warning
src and tgt must have the same size. Not checked!

Definition at line 113 of file PreEuclideanDistanceFunction.hpp.

static double Bial::PreEuclideanDistanceFunction::Distance ( const char *  src,
const char *  tgt,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const uchar src,
const uchar tgt,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const short *  src,
const short *  tgt,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const int *  src,
const int *  tgt,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const uint src,
const uint tgt,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const ulint src,
const ulint tgt,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const llint src,
const llint tgt,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const ullint src,
const ullint tgt,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const float *  src,
const float *  tgt,
const size_t  dms 
)
static
static double Bial::PreEuclideanDistanceFunction::Distance ( const double *  src,
const double *  tgt,
const size_t  dms 
)
static
void Bial::PreEuclideanDistanceFunction::Foo ( ) const
inlinevirtual

Foo function just to implement pure virtual function from parent class.

Date
2015/Mar/10
Parameters
none.
Returns
none.
Warning
none.

Implements Bial::DistanceFunction< PreEuclideanDistanceFunction >.

Definition at line 44 of file PreEuclideanDistanceFunction.hpp.

static void Bial::PreEuclideanDistanceFunction::SetPreEuclideanDistanceFunction ( size_t  maximum_distance)
static

Basic Constructor.

Date
2013/Jun/21
Parameters
maximum_distanceMaximum distance between elements of a feature vector. i.e. max - min.
Returns
none.
Warning
This class should be used only with integer types. Behavior for floating point types is unknown.

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