Hausdorff Convex Set Distance

Hausdorff metric for convex polygons
391 Downloads
Updated 19 Nov 2013

View License

This class calculates the Hausdorff distance between convex polygons. The Hausdorff distance between sets X and Y,

dH(X, Y) = max x:X{ min y:Y {d(x,y)}},

with the symmetric Hausdorff distance being

dsymH(X, Y) = max{ dH(X, Y), dH(Y, X) }.

The methods are hausdorff and symmetricHausdorff, respectively.

The heavy lifting of the class is done by the method pointDist which
finds the minimum distance between a point and a convex Polygon.

The polygons may have vertices sorted clockwise or counter-clockwise (the user must supply which), and are assumed to be convex.

Cite As

Richard Katzwer (2024). Hausdorff Convex Set Distance (https://www.mathworks.com/matlabcentral/fileexchange/44278-hausdorff-convex-set-distance), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Computational Geometry in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

Updated title, tags

1.0.0.0