Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::GraphAdjacency< DERIVED > Class Template Referenceabstract

Graph Operator classes. Used to compute OPF. May use Knn, LSH, etc. More...

#include <GraphAdjacency.hpp>

Collaboration diagram for Bial::GraphAdjacency< DERIVED >:
Collaboration graph

Public Member Functions

virtual ~GraphAdjacency ()
 Virutal destructor. More...
 
template<class D >
void Initialize (const Feature< D > &feature, const Sample &sample, float scl_min, float scl_max)
 Initializes the object. More...
 
virtual size_t Scales () const =0
 Returns the number of different scales. More...
 
virtual double Sigma (size_t scl) const =0
 Returns sigma value, that is, the variance of the gaussian of the nodes PDF. More...
 
virtual size_t Arcs (size_t src, size_t scl) const =0
 Returns the number of adjacents to src with scale scl. More...
 
virtual size_t Arc (size_t src, size_t adj) const =0
 Returns the 'adj'-th adjacent index from src. More...
 
virtual double ArcWeight (size_t src, size_t adj) const =0
 Returns the weight of arc from src to its 'arc'-th adjacent. More...
 
virtual bool ValidNeighbor (size_t src, size_t scl, double distance) const =0
 Verifies if distance lays inside src region of influence. More...
 

Static Public Member Functions

static size_t MaxSamples ()
 Returns the maximum number of samples of the derived class. More...
 

Detailed Description

template<class DERIVED>
class Bial::GraphAdjacency< DERIVED >

Graph Operator classes. Used to compute OPF. May use Knn, LSH, etc.

Definition at line 22 of file GraphAdjacency.hpp.

Constructor & Destructor Documentation

template<class DERIVED>
virtual Bial::GraphAdjacency< DERIVED >::~GraphAdjacency ( )
inlinevirtual

Virutal destructor.

Date
2014/Oct/23
Parameters
none.
Returns
none.
Warning
none.

Definition at line 44 of file GraphAdjacency.hpp.

Member Function Documentation

template<class DERIVED>
virtual size_t Bial::GraphAdjacency< DERIVED >::Arc ( size_t  src,
size_t  adj 
) const
pure virtual

Returns the 'adj'-th adjacent index from src.

Date
2014/Nov/26
Parameters
srcsample index.
adjNumber of adjacent element.
Returns
The 'adj'-th adjacent index from src.
Warning
none.

Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.

template<class DERIVED>
virtual size_t Bial::GraphAdjacency< DERIVED >::Arcs ( size_t  src,
size_t  scl 
) const
pure virtual

Returns the number of adjacents to src with scale scl.

Date
2014/Nov/26
Parameters
srcsample index.
sclNumber of scale element.
Returns
Number of arcs within the given scale to the source element.
Warning
none.

Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.

template<class DERIVED>
virtual double Bial::GraphAdjacency< DERIVED >::ArcWeight ( size_t  src,
size_t  adj 
) const
pure virtual

Returns the weight of arc from src to its 'arc'-th adjacent.

Date
2014/Nov/26
Parameters
srcsample index.
adjNumber of adjacent element.
Returns
Weight of arc from src to its 'arc'-th adjacent.
Warning
none.

Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.

template<class DERIVED>
template<class D >
void Bial::GraphAdjacency< DERIVED >::Initialize ( const Feature< D > &  feature,
const Sample sample,
float  scl_min,
float  scl_max 
)
inline

Initializes the object.

Date
2012/Oct/09
Parameters
featurefeature vector containing only the subsamples.
samplesample vector.
scl_min,scl_maxminimum and maximum scale fractions utilized for clustering. (0.0 - 1.0)
Returns
none.
Warning
none.

Definition at line 57 of file GraphAdjacency.hpp.

template<class DERIVED>
static size_t Bial::GraphAdjacency< DERIVED >::MaxSamples ( )
inlinestatic

Returns the maximum number of samples of the derived class.

Date
2014/Nov/14
Parameters
none.
Returns
Maximum number of samples.
Warning
none.

Definition at line 33 of file GraphAdjacency.hpp.

template<class DERIVED>
virtual size_t Bial::GraphAdjacency< DERIVED >::Scales ( ) const
pure virtual

Returns the number of different scales.

Date
2014/Nov/14
Parameters
none.
Returns
The number of different scales.
Warning
none.

Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.

template<class DERIVED>
virtual double Bial::GraphAdjacency< DERIVED >::Sigma ( size_t  scl) const
pure virtual

Returns sigma value, that is, the variance of the gaussian of the nodes PDF.

Date
2014/Nov/26
Parameters
sclNumber of scale element.
Returns
Sigma value.
Warning
none.

Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.

template<class DERIVED>
virtual bool Bial::GraphAdjacency< DERIVED >::ValidNeighbor ( size_t  src,
size_t  scl,
double  distance 
) const
pure virtual

Verifies if distance lays inside src region of influence.

Date
2014/Nov/26
Parameters
srcsample index.
sclNumber of scale element.
weightWeight to be checked.
Returns
True if distance lays inside src region of influence.
Warning
none.

Implemented in Bial::LSHGraphAdjacency, and Bial::KnnGraphAdjacency.


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