ImHausdorff

Matlab code for fast Hausdorff distance computation for binary images or segmentation maps

https://github.com/joakimlindblad/ImHausdorff

You are now following this Submission

Noticing that all Hausdorff distance functions I could find on MATLAB File Exchange seem to compute all pairwise point-to-point distances making them very slow for large images, I felt compelled to write a version imhausdorff which uses a distance transform, bwdist, and thus scale linearly for large image data. The code should work for images of any dimension. Do try the examples in the help text.

Including point cloud version hausdorff as well. Functional for small data sets.

/ Joakim

Cite As

Joakim Lindblad (2026). ImHausdorff (https://github.com/joakimlindblad/ImHausdorff), GitHub. Retrieved .

Acknowledgements

Inspired: segmentation-evaluator

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes Action
1.0.0.1

fig

1.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.