Abstract
This paper introduces a globally optimal solver for multi-label image segmentation that strictly enforces region connectivity. By formulating the problem as an Integer Linear Program (ILP) and using a "branch-and-cut" strategy, the authors provide a method that guarantees the best possible solution under connectivity constraints, serving as a powerful tool for generating high-quality ground truth data.
Introduction
In computer vision, Markov Random Fields (MRFs) are fundamental for tasks like image segmentation. However, standard MRF models often produce "speckle" noise or disconnected regions that lack physical plausibility (e.g., a segmented organ appearing as separate floating pieces). While connectivity priors can address this, they introduce NP-hard complexity. Most existing solutions rely on Linear Programming (LP) relaxations that result in fractional pixels or simplified connectivity. This paper tackles the challenge of exact global connectivity—ensuring every pixel of a certain label belongs to a single, continuous component—while finding the mathematically optimal solution.
Methods
The authors propose ILP-PC (Integer Linear Programming with Connectivity), which translates the MRF energy minimization problem into a set of linear equations with integer constraints.
Rooted Connectivity and Branch-and-Cut
To make the problem tractable, the model uses user-provided "scribbles" as seeds. For each label, every pixel assigned that label must have a valid path back to a "root" node. Since the number of potential disconnected regions is exponential, the solver employs a branch-and-cut strategy. It starts without connectivity constraints and adds them "on the fly" as cutting planes only when a disconnected solution is detected.
As illustrated in Figure 1, the solver identifies separators ($S_1, S_2$) between disconnected components and the root $r$ using a Breadth-First Search (BFS) strategy to find the necessary constraints to add to the ILP. To further accelerate the process, an $L_0-H$ heuristic provides a high-quality initial solution to prune the search space.
Results and Discussion
The model was evaluated on medical MRI scans, the BSDS500 dataset, and PASCAL VOC 2012.
- Global Optimality: The solver found provably optimal solutions for PASCAL images in times ranging from 0.08 to 31.3 seconds.
- Quality Improvement: ILP-PC improved initial heuristic solutions by an average of 6.4%. Even under a strict 2-second time limit, it improved segmentation quality in 80% of test instances.
- The Background Exception: A key insight is the ILP-PCB model, which allows the "background" label to remain disconnected. This reflects natural scenes (e.g., sky visible through trees) and significantly improves solver speed without compromising quality.
Conclusion
Connectivity serves as a powerful regularizer that helps the solver resolve ambiguities inherent in standard MRFs. While computationally more intensive than heuristic methods, ILP-PC provides "anytime feasibility," allowing users to know exactly how close a solution is to the mathematical optimum. While currently best suited for offline tasks like ground truth generation due to its reliance on seeds and computational cost, it represents a significant step forward in constrained image segmentation.
Summary updated