Hausdorff Distance
Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Zachary Danziger (2026). Hausdorff Distance (https://www.mathworks.com/matlabcentral/fileexchange/26738-hausdorff-distance), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Hausdorff Distance
Inspired: Modified Hausdorff Distance, *MEX* Modified Hausdorff Distance for 2D Point Sets
General Information
- Version 1.6.0 (4.19 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.6.0 | An option for data visualization is now included. |
||
| 1.4.0 | Based on user comments, the algorithm for large data sets was updated for performance. |
||
| 1.3.0 | The code now automatically switches to a secondary algorithm when there is insufficient memory to compute and store a matrix containing distances between all constituent points. It also allows the user to manually choose the desired algorithm. |
||
| 1.2.0 | Generalizes the code to allow N-dimensional point sets. This update is inspired by file 27905, which has a good implementation of HD beyond 2-D sets of points. |
||
| 1.1.0 | Edits Added the matrix of distances as an output option. Fixed a bug that would cause an error if one of the sets was a single point. Removed excess calls to "size" and "length". - May 2010 |
||
| 1.0.0 |