Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
#include <KnnGraphAdjacency.hpp>
Public Member Functions | |
template<class D > | |
void | Initialize (const Feature< D > &feature, const Sample &sample, float scl_min, float scl_max) |
Initializes the object. More... | |
size_t | Scales () const |
Returns the number of different scales. More... | |
double | Sigma (size_t scl) const |
Returns sigma value, that is, the variance of the gaussian of the nodes PDF. More... | |
size_t | Arcs (size_t src, size_t scl) const |
Returns the number of adjacents to src with scale scl. More... | |
size_t | Arc (size_t src, size_t adj) const |
Returns the 'adj'-th adjacent index from src. More... | |
double | ArcWeight (size_t src, size_t adj) const |
Returns the weight of arc from src to its 'arc'-th adjacent. More... | |
template<class D > | |
void | EstimateK (const Feature< D > &feature, float scl_min, float scl_max) |
Computes neighbors to be used by Knn algorithm. More... | |
Vector< Vector< size_t > > & | HeterogeneousAdjacency (const Vector< double > &density, size_t scl, double delta) |
Complements the k-nn adjacency relation with plateau edges, avoiding assimetric adjacencies. More... | |
const Matrix< size_t > & | HomogeneousAdjacency () const |
Returns the knn adjacency with requested scale. More... | |
size_t | HomogeneousSize (size_t scl) const |
Returns the number of elements in homogeneous adjacency. More... | |
const Vector< size_t > & | HeterogeneousSize (size_t scl) const |
Returns the number of elements in homogeneous adjacency. More... | |
bool | ValidNeighbor (size_t src, size_t scl, double distance) const |
Verifies if distance lays inside src region of influence. More... | |
Public Member Functions inherited from Bial::GraphAdjacency< KnnGraphAdjacency > | |
virtual | ~GraphAdjacency () |
Virutal destructor. More... | |
void | Initialize (const Feature< D > &feature, const Sample &sample, float scl_min, float scl_max) |
Initializes the object. More... | |
Static Public Attributes | |
static const size_t | MAX_SAMPLES |
Additional Inherited Members | |
Static Public Member Functions inherited from Bial::GraphAdjacency< KnnGraphAdjacency > | |
static size_t | MaxSamples () |
Returns the maximum number of samples of the derived class. More... | |
Definition at line 25 of file KnnGraphAdjacency.hpp.
|
virtual |
Returns the 'adj'-th adjacent index from src.
src | sample index. |
adj | Number of adjacent element. |
Implements Bial::GraphAdjacency< KnnGraphAdjacency >.
|
virtual |
Returns the number of adjacents to src with scale scl.
src | sample index. |
scl | Number of scale element. |
Implements Bial::GraphAdjacency< KnnGraphAdjacency >.
|
virtual |
Returns the weight of arc from src to its 'arc'-th adjacent.
src | sample index. |
adj | Number of adjacent element. |
Implements Bial::GraphAdjacency< KnnGraphAdjacency >.
void Bial::KnnGraphAdjacency::EstimateK | ( | const Feature< D > & | feature, |
float | scl_min, | ||
float | scl_max | ||
) |
Computes neighbors to be used by Knn algorithm.
feature | Feature vector. |
scl_min,scl_max | minimum and maximum scale fractions utilized for clustering. (0.0 - 1.0) |
Vector< Vector< size_t > >& Bial::KnnGraphAdjacency::HeterogeneousAdjacency | ( | const Vector< double > & | density, |
size_t | scl, | ||
double | delta | ||
) |
Complements the k-nn adjacency relation with plateau edges, avoiding assimetric adjacencies.
density | density vector. |
scl | Required scale. |
delta | Maximum density distance in a plateau. |
Returns the number of elements in homogeneous adjacency.
scl | Required scale. |
Returns the knn adjacency with requested scale.
none. |
size_t Bial::KnnGraphAdjacency::HomogeneousSize | ( | size_t | scl | ) | const |
Returns the number of elements in homogeneous adjacency.
scl | Required scale. |
void Bial::KnnGraphAdjacency::Initialize | ( | const Feature< D > & | feature, |
const Sample & | sample, | ||
float | scl_min, | ||
float | scl_max | ||
) |
Initializes the object.
feature | feature vector containing only the subsamples. |
sample | sample vector. |
scl_min,scl_max | minimum and maximum scale fractions utilized for clustering. (0.0 - 1.0) |
|
virtual |
Returns the number of different scales.
none. |
Implements Bial::GraphAdjacency< KnnGraphAdjacency >.
|
virtual |
Returns sigma value, that is, the variance of the gaussian of the nodes PDF.
scl | Number of scale element. |
Implements Bial::GraphAdjacency< KnnGraphAdjacency >.
|
virtual |
Verifies if distance lays inside src region of influence.
src | sample index. |
scl | Number of scale element. |
weight | Weight to be checked. |
Implements Bial::GraphAdjacency< KnnGraphAdjacency >.
|
static |
Definition at line 39 of file KnnGraphAdjacency.hpp.