MeshMetrics: A Precise Implementation of Distance-Based Image Segmentation Metrics

Gašper Podobnik, Tomaž Vrtovec
9/6/2025
cs.CV

Official code: gasperpodobnik/MeshMetrics (11 stars, Apache-2.0, last commit 2026-03-02).

Abstract

The surge of research in image segmentation has yielded remarkable performance gains but also exposed a reproducibility crisis. A major contributor is performance evaluation, where both selection and implementation of metrics play critical roles. While recent efforts have improved the former, the reliability of metric implementation has received far less attention. Pitfalls in distance-based metric implementation can lead to considerable discrepancies between common open-source tools, for instance, exceeding 100 mm for the Hausdorff distance and 30%pt for the normalized surface distance for the same pair of segmentations. To address these pitfalls, we introduce MeshMetrics, a mesh-based framework that provides a more precise computation of distance-based metrics than conventional grid-based approaches. Through theoretical analysis and empirical validation, we demonstrate that MeshMetrics achieves higher accuracy and precision than established tools, and is substantially less affected by discretization artifacts, such as distance quantization. We release MeshMetrics as an open-source Python package, available at https://github.com/gasperpodobnik/MeshMetrics.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Library to compute distance-based performance metrics for image segmentation tasks.

111Python, Jupyter NotebookOct 2, 20247 months agoApache-2.0

Similar Papers

Cite this paper

@article{podobnik2025meshmetrics,
  title  = {MeshMetrics: A Precise Implementation of Distance-Based Image Segmentation Metrics},
  author = {Gašper Podobnik and Tomaž Vrtovec},
  year   = {2025},
  eprint = {2509.05670},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.05670v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.05670.svg)](https://codeofpaper.com/paper/2509.05670)

Discussion