Jordan-Segmentable Masks: A Topology-Aware definition for characterizing Binary Image Segmentation
Serena Grazia De Benedictis, Amedeo Altavilla, Nicoletta Del Buono
TL;DR
This work tackles the limitation of conventional segmentation metrics in capturing topological coherence by introducing Jordan-segmentable masks, a topology-aware criterion grounded in the digital Jordan Curve Theorem and homology. It identifies a 4-curve candidate within a binary segmentation and validates it using Betti numbers: $β_0=β_1=1$ for the curve and $β_0(I\setminus S)=2$ for the complement, ensuring a robust interior/exterior separation. The approach provides an unsupervised, structure-preserving check that complements pixel-wise measures, particularly in domains where connectivity matters. Experiments on the FSS-1000 dataset with standard segmentation methods illustrate the practical applicability and reveal cases where topological correctness diverges from traditional scores, underscoring the method's complementary value.
Abstract
Image segmentation plays a central role in computer vision. However, widely used evaluation metrics, whether pixel-wise, region-based, or boundary-focused, often struggle to capture the structural and topological coherence of a segmentation. In many practical scenarios, such as medical imaging or object delineation, small inaccuracies in boundary, holes, or fragmented predictions can result in high metric scores, despite the fact that the resulting masks fail to preserve the object global shape or connectivity. This highlights a limitation of conventional metrics: they are unable to assess whether a predicted segmentation partitions the image into meaningful interior and exterior regions. In this work, we introduce a topology-aware notion of segmentation based on the Jordan Curve Theorem, and adapted for use in digital planes. We define the concept of a \emph{Jordan-segmentatable mask}, which is a binary segmentation whose structure ensures a topological separation of the image domain into two connected components. We analyze segmentation masks through the lens of digital topology and homology theory, extracting a $4$-curve candidate from the mask, verifying its topological validity using Betti numbers. A mask is considered Jordan-segmentatable when this candidate forms a digital 4-curve with $β_0 = β_1 = 1$, or equivalently when its complement splits into exactly two $8$-connected components. This framework provides a mathematically rigorous, unsupervised criterion with which to assess the structural coherence of segmentation masks. By combining digital Jordan theory and homological invariants, our approach provides a valuable alternative to standard evaluation metrics, especially in applications where topological correctness must be preserved.
