Superpixels via pseudo-Boolean optimization

Yuhang Zhang, Richard I. Hartley, John Mashford, Stewart Burn

Abstract

Superpixel segmentation is a critical preprocessing step in computer vision, yet existing methods often struggle to balance computational efficiency with boundary adherence. This paper presents a novel approach that reformulates the multi-label superpixel problem into two independent binary labeling tasks. By utilizing pseudo-Boolean optimization, the proposed method achieves high-quality segmentation in approximately 0.5 seconds, making it significantly faster than previous energy-minimization techniques while maintaining comparable accuracy on standard benchmarks.

Introduction

Superpixels—clusters of pixels sharing similar color or texture—serve as a fundamental building block for higher-level vision tasks such as object recognition and depth estimation. The ideal superpixel algorithm should satisfy a "trilemma": high speed, regular shape, and strict adherence to image boundaries. While methods like Normalized Cuts offer high accuracy, their computational cost is prohibitive for real-time applications. Conversely, faster methods often sacrifice boundary adherence. This work aims to bridge this gap by simplifying the optimization landscape of superpixel generation.

Methodology: The Strip Strategy

The core innovation of this work is the decomposition of the multi-label segmentation problem. Traditional energy-minimization approaches assign each pixel to one of hundreds of potential patches, leading to high complexity. The authors instead propose a "Binary Labeling" approach using overlapping horizontal and vertical strips.

The horizontal ($H_i$) and vertical ($V_i$) strip overlapping strategy used to simplify multi-label optimization into binary tasks.

As shown in the figure above, the image is covered with two sets of half-overlapping strips. For each pass (horizontal and vertical), every pixel faces a binary choice: which of the two overlapping strips does it belong to? This binary decision is modeled as a pseudo-Boolean energy minimization problem:

  • Submodular Formulation: A smooth version where neighboring pixels are encouraged to remain in the same strip, solvable via fast Max-Flow algorithms.
  • Nonsubmodular Formulation: An edge-aware version that reduces penalties for strip switching at high-contrast edges, allowing boundaries to "snap" to real object contours.

The final superpixels are formed by the intersection of the resulting horizontal and vertical "latent strips."

Evaluation and Results

The method was evaluated on the Berkeley Segmentation Dataset (BSD) using the Recall Rate metric. The results demonstrate that the proposed binary optimization approach is highly effective.

Performance and Speed

The submodular version of the algorithm processes a standard 481 × 321 image in just 0.5 seconds. Crucially, the processing time is independent of the desired number of superpixels, a significant advantage over methods where complexity scales with the number of labels.

Superpixel segmentation results on a natural image, demonstrating the algorithm's ability to capture complex boundaries like the palm tree.

Accuracy

The nonsubmodular formulation provides a 5% improvement in recall rate over the submodular version by better capturing high-contrast edges. Furthermore, the algorithm outperformed slower methods like Normalized Cuts, which often over-prioritize shape regularity at the expense of edge adherence.

Conclusion

By reducing the dimensionality of the superpixel problem from multi-label to binary, this research provides a high-speed solution suitable for real-time vision pipelines. Future work may explore adding diagonal strip sets to reduce grid bias and further parallelizing the independent horizontal and vertical passes to achieve even lower processing times.

Summary updated

BibTeX
@inproceedings{zhang2011superpixels,
  author = {Yuhang Zhang and Richard I. Hartley and John Mashford and Stewart Burn},
  title = {{Superpixels via pseudo-Boolean optimization}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2011},
  doi = {10.1109/iccv.2011.6126393},
}
Figure