#include <bdgl_region_algs.h>
Public Member Functions | |
~bdgl_region_algs () | |
Static Public Member Functions | |
static float | mahalanobis_distance (vdgl_digital_region_sptr const &r1, vdgl_digital_region_sptr const &r2) |
Computes the Mahalanobis distance between two regions. | |
static float | intensity_distance (vdgl_digital_region_sptr const &r1, vdgl_digital_region_sptr const &r2) |
Computes the intensity distance between two regions. | |
static float | earth_mover_distance (vdgl_digital_region_sptr const &r1, vdgl_digital_region_sptr const &r2) |
Computes a variant of the earth mover's distance with respect to intensity. | |
static bool | merge (vdgl_digital_region_sptr const &r1, vdgl_digital_region_sptr const &r2, vdgl_digital_region_sptr &rm) |
Merges two digital regions and returns false if there is failure. | |
Private Member Functions | |
bdgl_region_algs () | |
private default constructor: all methods are static |
Definition at line 18 of file bdgl_region_algs.h.
bdgl_region_algs::bdgl_region_algs | ( | ) | [inline, private] |
private default constructor: all methods are static
Definition at line 20 of file bdgl_region_algs.h.
bdgl_region_algs::~bdgl_region_algs | ( | ) | [inline] |
Definition at line 23 of file bdgl_region_algs.h.
float bdgl_region_algs::earth_mover_distance | ( | vdgl_digital_region_sptr const & | r1, |
vdgl_digital_region_sptr const & | r2 | ||
) | [static] |
Computes a variant of the earth mover's distance with respect to intensity.
Computes the maximum average distance between the intensity samples in two regions.
Returns -1 if the distance cannot be reliably calculated.
Definition at line 133 of file bdgl_region_algs.cxx.
float bdgl_region_algs::intensity_distance | ( | vdgl_digital_region_sptr const & | r1, |
vdgl_digital_region_sptr const & | r2 | ||
) | [static] |
Computes the intensity distance between two regions.
Returns -1 if the distance cannot be reliably calculated.
Definition at line 38 of file bdgl_region_algs.cxx.
float bdgl_region_algs::mahalanobis_distance | ( | vdgl_digital_region_sptr const & | r1, |
vdgl_digital_region_sptr const & | r2 | ||
) | [static] |
Computes the Mahalanobis distance between two regions.
Finds the Mahalanobis distance between the intensity distributions of two regions.
Returns -1 if the distance cannot be reliably calculated.
If there are not enough pixels in either or both regions to reliably determine the distance then -1 is returned.
Definition at line 13 of file bdgl_region_algs.cxx.
bool bdgl_region_algs::merge | ( | vdgl_digital_region_sptr const & | r1, |
vdgl_digital_region_sptr const & | r2, | ||
vdgl_digital_region_sptr & | rm | ||
) | [static] |
Merges two digital regions and returns false if there is failure.
Definition at line 60 of file bdgl_region_algs.cxx.