Segmentation of Natural Images by Texture and Boundary Compression

Hossein Mobahi, Shankar R. Rao, Allen Y. Yang, Shankar S. Sastry, Yi Ma

TL;DR

This paper introduces TBES (Texture and Boundary Encoding-based Segmentation), an algorithm that treats image segmentation as a data compression problem. By minimizing the total number of bits needed to describe both the textures (modeled as Gaussians) and the boundaries (modeled as adaptive chain codes), the method achieves state-of-the-art results on the Berkeley Segmentation Dataset.

What Problem Does This Paper Address?

Image segmentation—partitioning an image into meaningful, homogeneous regions—is a cornerstone of computer vision. However, it suffers from two major hurdles:

  1. Lack of Objective Criteria: It is difficult to balance "objective" statistical measures of pixels with "subjective" human perception of what constitutes an object.
  2. Model Inconsistency: Most methods struggle to unify the representation of a region's internal texture with the geometry of its boundary.

Previous attempts using the Minimum Description Length (MDL) principle, like the authors' earlier Compression-based Texture Merging (CTM), were often redundant. They "compressed" overlapping windows, leading to a coding length that didn't actually represent the true entropy of the image and ignored the smoothness of region boundaries.

Methods

The authors propose a framework that explicitly counts the bits required to represent an image. The core idea is that the "optimal" segmentation is the one that results in the shortest total coding length.

  • Texture Encoding: Regions are modeled as Gaussian distributions. To avoid redundancy, the algorithm only "counts" non-overlapping windows that tile the region. It uses the rate-distortion function of a Gaussian to estimate the bits needed to represent these textures given a specific quantization error ($\epsilon$).
  • Boundary Encoding: Instead of simple pixel-labeling, the authors use an adaptive Huffman code applied to difference chain codes. This leverages the fact that boundaries in natural images are usually smooth; if a boundary is moving "up," the next segment is highly likely to also move "up" or slightly diagonal, requiring fewer bits to encode than a random direction.
  • Agglomerative Clustering: The algorithm starts with an over-segmentation (superpixels) and iteratively merges adjacent regions if the merge reduces the total coding length.
  • Hierarchical Scaling: To handle regions of different sizes, the process runs through a hierarchy of window sizes (from $7 \times 7$ down to $1 \times 1$). This allows the model to capture coarse textures first and then refine thin or small structures.
  • Adaptive Distortion ($\epsilon$): Since different images require different levels of detail, the authors use a linear regression model to adaptively choose the distortion parameter $\epsilon$ based on the image's intensity variance across scales.

Datasets

The primary benchmark used is the Berkeley Segmentation Dataset (BSD), which consists of 300 natural images (200 for training, 100 for testing). Each image includes multiple ground-truth segmentations provided by human subjects, allowing for a direct comparison between algorithmic output and human perception.

Key Insights and Ideas

  • The "Lab" Advantage: Through empirical testing, the authors found that the Lab color space is the most "compressible" for natural images compared to RGB, HSV, or YUV. This aligns with the fact that Lab is designed to be perceptually uniform.
  • Boundaries Matter for Bits: By including the cost of the boundary in the MDL objective function, the algorithm naturally prefers smoother, more "natural" shapes over jagged, complex ones, as jagged shapes are more "expensive" to encode.
  • Segmentation = Entropy Estimation: A fascinating byproduct of this method is that the final coding length provides a remarkably accurate estimate of the true entropy of the image.

Key Results

The TBES algorithm was compared against several heavyweights, including Mean-Shift, MCMC, and Ultrametric Contour Maps (UCM).

  • Top Performance: TBES achieved the highest scores in the Probabilistic Rand Index (PRI) (0.807) and the Variation of Information (VOI) (1.705) on the BSD.
  • Human-Like Results: Qualitatively, the segmentations appear very "clean," successfully grouping complex textures (like the fur of an animal or the foliage of a tree) into single regions while maintaining sharp boundaries.

Limitations and Future Work

Despite its strengths, the authors identify several failure modes:

  • Camouflage: When an animal's texture is evolutionarily designed to match its background, the Gaussian model sees them as the same region.
  • Thin Structures: Very thin regions (e.g., spider legs or thin branches) are difficult to capture because the texture windows ($w \times w$) often overlap with the background, making the statistical estimation "unstable."
  • Non-Gaussian Textures: Highly regular geometric patterns (like brickwork or fences) don't always fit the Gaussian assumption perfectly.

Future work could involve exploring more sophisticated texture models beyond the Gaussian distribution to handle these edge cases.

Summary updated

BibTeX
@article{mobahi2011segmentation,
  author = {Hossein Mobahi and Shankar R. Rao and Allen Y. Yang and Shankar S. Sastry and Yi Ma},
  title = {{Segmentation of Natural Images by Texture and Boundary Compression}},
  journal = {Int. J. Comput. Vis.},
  year = {2011},
  url = {https://openreview.net/forum?id=c8Zn_hOQNUr},
}

Loading related content...

Figure