Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

gutk::HausdorffDistance Class Reference

#include <hausdorff.h>

Collaboration diagram for gutk::HausdorffDistance:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class to calculate Hausdorff distance between two sets of points.

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.


Constructor & Destructor Documentation

gutk::HausdorffDistance::HausdorffDistance void   ) 
 

Default constructor.

Does nothing. An object initialised by default construction should call the setA and setB member fucntions to register two sets of points.

gutk::HausdorffDistance::HausdorffDistance const tutk::List< gutk::Point > &  setA,
const tutk::List< gutk::Point > &  setB
 

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.

gutk::HausdorffDistance::HausdorffDistance const HausdorffDistance h  ) 
 

Copy constructor.

It is only a reference copier.


Member Function Documentation

double gutk::HausdorffDistance::getAB bool &  validity  ) 
 

Returns max{min{dist(A, B)}}.

The parameter validity will be set to true if a valid distance is returned.

double gutk::HausdorffDistance::getBA bool &  validity  ) 
 

Returns max{min{dist(B, A)}}.

The parameter validity will be set to true if a valid distance is returned.

double gutk::HausdorffDistance::getClosenessMeasure double  epsilon  ) 
 

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.

double gutk::HausdorffDistance::getH bool &  validity  ) 
 

Returns the hausdorff distance.

The parameter validity will be set to true if a valid distance is returned.

void gutk::HausdorffDistance::setA const tutk::List< gutk::Point > &  setA  ) 
 

Registers the set A.

This set is not translated.

void gutk::HausdorffDistance::setB const tutk::List< gutk::Point > &  setB  ) 
 

Registers the set B.

This set is translated as per previously set translation( by a call to the setTranslation member function) value.

void gutk::HausdorffDistance::setTranslation const gutk::Point t  ) 
 

Sets the translation value.

Set B is translated using this value.


The documentation for this class was generated from the following file:
Generated on Mon Nov 22 11:12:41 2004 for ImprolaLib by doxygen 1.3.7