LooseCut: Interactive Image Segmentation with Loosely Bounded Boxes

Hongkai Yu, Youjie Zhou, Hui Qian, Min Xian, Yuewei Lin, Dazhou Guo, Kang Zheng, Kareem Abdelfatah, Song WangICIP 2015 · DOI

Abstract

One popular approach to interactively segment the foreground object of interest from an image is to annotate a bounding box that covers the foreground object. Then, a binary labeling is performed to achieve a refined segmentation. One major issue of the existing algorithms for such interactive image segmentation is their preference of an input bounding box that tightly encloses the foreground object. This increases the annotation burden, and prevents these algorithms from utilizing automatically detected bounding boxes. In this paper, we develop a new LooseCut algorithm that can handle cases where the input bounding box only loosely covers the foreground object. We propose a new Markov Random Fields (MRF) model for segmentation with loosely bounded boxes, including a global similarity constraint to better distinguish the foreground and background, and an additional energy term to encourage consistent labeling of similar-appearance pixels. This MRF model is then solved by an iterated max-flow algorithm. In the experiments, we evaluate LooseCut in three publicly-available image datasets, and compare its performance against several state-of-the-art interactive image segmentation algorithms. We also show that LooseCut can be used for enhancing the performance of unsupervised video segmentation and image saliency detection.

Introduction

Interactive image segmentation is a fundamental task in computer vision, aiming to separate a foreground object from its background with minimal human intervention. A common interface for this task is the bounding box, popularized by algorithms like GrabCut. GrabCut estimates color models for the foreground (inside the box) and background (outside the box) to guide a graph-cut optimization.

However, traditional methods like GrabCut are highly sensitive to the precision of the input box. They assume the box tightly encloses the object. When a "loose" box is provided—containing significant background area—the foreground model becomes "polluted" with background color statistics. This leads to segmentation failures where background regions inside the box are incorrectly labeled as foreground.

Comparison of GrabCut and LooseCut performance under tight and loose input bounding boxes.

Methodology

LooseCut addresses the "looseness" problem by introducing two key innovations into the Markov Random Field (MRF) framework.

Global Similarity Constraint

In each iteration of the segmentation process, LooseCut builds Gaussian Mixture Models (GMMs) for both foreground and background. Unlike standard methods, LooseCut explicitly prunes Gaussian components from the foreground model if they are too similar to the background model. This pruning process effectively "cleans" the foreground model of background pollution that occurs when the input box is loose.

Label Consistency Term ($E_{LC}$)

Standard MRFs typically enforce local smoothness between adjacent pixels. LooseCut extends this by incorporating a non-local label consistency term. By using superpixel algorithms to group similar-looking pixels into clusters, the algorithm adds auxiliary nodes to the graph. These nodes encourage all pixels within a cluster to share the same label, regardless of their spatial adjacency. This allows background information from outside the box to propagate to similar-looking regions inside the box.

Illustration of (a) the global similarity constraint and (b) the connectivity between pixels inside and outside the box.

Experiments and Results

The performance of LooseCut was evaluated on three benchmark datasets: GrabCut, Weizmann, and iCoseg. To simulate varying degrees of user precision, ground-truth bounding boxes were dilated by up to 600% in area.

LooseCut demonstrates significant robustness to loose boxes. On the GrabCut dataset with a 600% area increase, LooseCut achieved an F-measure of 0.826 and an error rate of 6.8%. In contrast, the original GrabCut's performance dropped to an F-measure of 0.788 with a 13.7% error rate. While the inclusion of superpixel clustering adds some computational overhead, the algorithm remains efficient, processing a $512 \times 512$ image in approximately 7.6 seconds.

Conclusion

LooseCut provides a robust solution for interactive segmentation that reduces the burden on users to provide perfectly tight bounding boxes. By leveraging global similarity constraints and non-local label consistency, it effectively handles background noise within the region of interest. This robustness also makes LooseCut a valuable tool for refining automatically generated object proposals in video segmentation and saliency detection tasks. Future work will explore the integration of deep semantic features to improve performance in low-contrast scenarios where foreground and background colors are highly similar.

Summary updated

BibTeX
@inproceedings{yu2015loosecut,
  author = {Hongkai Yu and Youjie Zhou and Hui Qian and Min Xian and Yuewei Lin and Dazhou Guo and Kang Zheng and Kareem Abdelfatah and Song Wang},
  title = {{LooseCut: Interactive Image Segmentation with Loosely Bounded Boxes}},
  booktitle = {ICIP},
  year = {2015},
  doi = {10.1109/icip.2017.8296900},
}
Figure