#include <hausdorff.h>
Collaboration diagram for gutk::HausdorffDistance:
You can also define a translation parameter for the second set. The returned distance is meaningfull only if there is a partial overlap of the rectangular bounding boxes of the two regions. The computed distance is only for those points which fall in the overlap.
Public Member Functions | |
HausdorffDistance (void) | |
Default constructor. | |
HausdorffDistance (const tutk::List< gutk::Point > &setA, const tutk::List< gutk::Point > &setB) | |
Point sets are registered at construction. | |
HausdorffDistance (const HausdorffDistance &h) | |
Copy constructor. | |
void | setA (const tutk::List< gutk::Point > &setA) |
Registers the set A. | |
void | setB (const tutk::List< gutk::Point > &setB) |
Registers the set B. | |
void | setTranslation (const gutk::Point &t) |
Sets the translation value. | |
double | getAB (bool &validity) |
Returns max{min{dist(A, B)}}. | |
double | getBA (bool &validity) |
Returns max{min{dist(B, A)}}. | |
double | getH (bool &validity) |
Returns the hausdorff distance. | |
double | getClosenessMeasure (double epsilon) |
Returns the closeness measure. |
|
Default constructor. Does nothing. An object initialised by default construction should call the setA and setB member fucntions to register two sets of points. |
|
Point sets are registered at construction. setB will be translated( call setTranslation member function to set a translation value) before the computation of any distance. |
|
Copy constructor. It is only a reference copier. |
|
Returns max{min{dist(A, B)}}. The parameter validity will be set to true if a valid distance is returned. |
|
Returns max{min{dist(B, A)}}. The parameter validity will be set to true if a valid distance is returned. |
|
Returns the closeness measure. It will return the percentage of points in the translated set B which lie within epsilon of some point in A. Zero will be returned if the two sets of points do not overlap. |
|
Returns the hausdorff distance. The parameter validity will be set to true if a valid distance is returned. |
|
Registers the set A. This set is not translated. |
|
Registers the set B. This set is translated as per previously set translation( by a call to the setTranslation member function) value. |
|
Sets the translation value. Set B is translated using this value. |