File Exchange

image thumbnail

*MEX* Modified Hausdorff Distance for 2D Point Sets

version 1.1 (2.02 KB) by

This function quickly computes the Modified Hausdorff Distance (MHD) for 2D point sets.

0 Downloads

Updated

View License

This function computes the Modified Hausdorff Distance (MHD) which is
proven to function better than the directed HD as per Dubuisson et al.
in the following work:

M. P. Dubuisson and A. K. Jain. A Modified Hausdorff distance for object
matching. In ICPR94, pages A:566-568, Jerusalem, Israel, 1994.
http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=576361

The function computed the forward and reverse distances and outputs the
minimum of both.

Format for calling function:

MHD = ModHausdorffDist(A,B);

where
MHD = Modified Hausdorff Distance.
A -> Point set 1
B -> Point set 2

No. of samples of each point set may be different but the dimension of
the points must be the same (2).

Comments and Ratings (2)

Ad

Ad (view profile)

Undefined function 'norm' for input arguments of type 'uint8'.
I am getting this error.
Error in ModHausdorffDist (line 47)
tempdist = norm(A(a,:)-B(b,:));

Error in saliencydistance (line 33)
MHD=ModHausdorffDist(A,B);

Venkat R

Hi
Nice submission.
I get different results, for same A and B, when I run again and again. Any reasons?

with regards,
Venkat

Updates

1.1

Added note that code works for 2D point sets

MATLAB Release
MATLAB 7.10 (R2010a)
Acknowledgements

Inspired by: Hausdorff Distance, Hausdorff Distance

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video