Superpixel-Based Image Segmentation Using Squared 2-Wasserstein Distances
Jisui Huang, Andreas Alpers, Ke Chen, Na Lei
TL;DR
This work addresses image segmentation under strong intensity inhomogeneity by introducing a two-level clustering framework that first builds superpixels and then greedily merges them using a squared $2$-Wasserstein distance between region histograms. The key idea is to unify clustering across scales within a distributional OT formulation, enabling robust region comparison without relying on ground-truth distributions. The proposed SP model leverages a region-adjacency graph, a memory-augmented merge cost, and OT-based dissimilarities to produce accurate, boundary-preserving segmentations at lower computational cost than pixel-based variational methods. Experimental results on challenging biomedical and synthetic datasets show that SP often outperforms variational, MST-based, and even some deep-learning approaches in accuracy while remaining computationally efficient. The approach is fully unsupervised and adaptable to marker-based guidance, offering a practical tool for robust segmentation in domains with strong illumination and inhomogeneity variations.
Abstract
We present an efficient method for image segmentation in the presence of strong inhomogeneities. The approach can be interpreted as a two-level clustering procedure: pixels are first grouped into superpixels via a linear least-squares assignment problem, which can be viewed as a special case of a discrete optimal transport (OT) problem, and these superpixels are subsequently greedily merged into object-level segments using the squared 2-Wasserstein distance between their empirical distributions. In contrast to conventional superpixel merging strategies based on mean-color distances, our framework employs a distributional OT distance, yielding a mathematically unified formulation across both clustering levels. Numerical experiments demonstrate that this perspective leads to improved segmentation accuracy on challenging images while retaining high computational efficiency.
