Segmentation of Natural Images by Texture and Boundary Compression

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

Abstract

We present a novel algorithm for segmentation of natural images that harnesses the principle of minimum description length (MDL). Our method is based on observations that a homogeneously textured region of a natural image can be well modeled by a Gaussian distribution and the region boundary can be effectively coded by an adaptive chain code. The optimal segmentation of an image is the one that gives the shortest coding length for encoding all textures and boundaries in the image, and is obtained via an agglomerative clustering process applied to a hierarchy of decreasing window sizes as multi-scale texture features. The optimal segmentation also provides an accurate estimate of the overall coding length and hence the true entropy of the image. We test our algorithm on the publicly available Berkeley Segmentation Dataset. It achieves state-of-the-art segmentation results compared to other existing methods.

Introduction

Image segmentation—the process of partitioning an image into meaningful, homogeneous regions—remains a fundamental challenge in computer vision. Two primary hurdles persist: the lack of objective criteria to balance statistical pixel measures with human perception, and the difficulty in unifying internal texture representation with boundary geometry.

Previous attempts utilizing the Minimum Description Length (MDL) principle often suffered from redundancy. For instance, earlier methods like Compression-based Texture Merging (CTM) "compressed" overlapping windows, leading to a coding length that failed to represent the true entropy of the image and neglected the smoothness of region boundaries. This paper introduces TBES (Texture and Boundary Encoding-based Segmentation), which treats segmentation as a pure data compression problem, explicitly minimizing the bits required to describe both textures and boundaries.

Methodology

The core principle of TBES is that the optimal segmentation is the one resulting in the shortest total coding length. The framework explicitly counts the bits required for two main components:

Texture Encoding

Regions are modeled as Gaussian distributions. To eliminate redundancy, the algorithm only counts non-overlapping windows that tile the region. It utilizes the rate-distortion function of a Gaussian to estimate the bits needed to represent these textures given a specific quantization error ($\epsilon$).

Texture modeling using Gaussian distributions and non-overlapping window tiling.

Boundary Encoding

Rather than simple pixel labeling, the authors employ an adaptive Huffman code applied to difference chain codes. This approach leverages the inherent smoothness of boundaries in natural images; for example, if a boundary moves "up," the subsequent segment is highly likely to continue in a similar direction, requiring fewer bits to encode than a random direction.

Boundary encoding using adaptive chain codes to represent region geometry efficiently.

Optimization and Scaling

The segmentation is achieved through agglomerative clustering, starting with superpixels and iteratively merging adjacent regions if the merge reduces the total coding length. To handle multi-scale features, the process runs through a hierarchy of window sizes (from $7 \times 7$ down to $1 \times 1$), capturing coarse textures first before refining smaller structures. Furthermore, the distortion parameter $\epsilon$ is adaptively chosen via a linear regression model based on image intensity variance across scales.

Experiments and Results

The TBES algorithm was evaluated on the Berkeley Segmentation Dataset (BSD), which includes 300 natural images with human-provided ground-truth segmentations.

Empirical testing revealed that the Lab color space is the most "compressible" for natural images, likely due to its perceptual uniformity. By incorporating boundary costs into the MDL objective, the algorithm naturally favors smoother, more "natural" shapes over complex, jagged ones, as the latter are more expensive to encode.

Quantitatively, TBES achieved state-of-the-art performance on the BSD, outperforming established methods like Mean-Shift, MCMC, and Ultrametric Contour Maps (UCM). It reached the highest scores in the Probabilistic Rand Index (PRI) (0.807) and the Variation of Information (VOI) (1.705). Qualitatively, the results are "clean," successfully grouping complex textures (e.g., animal fur) into single regions with sharp boundaries.

Discussion and Limitations

While effective, TBES faces challenges in specific scenarios:

  • Camouflage: Animals evolved to match their background may be merged with their surroundings as the Gaussian model perceives them as a single texture.
  • Thin Structures: Structures like spider legs or thin branches are difficult to capture because texture windows often overlap with the background, destabilizing statistical estimation.
  • Non-Gaussian Textures: Highly regular geometric patterns (e.g., brickwork) may not perfectly fit the Gaussian assumption.

Future research may explore more sophisticated texture models beyond the Gaussian distribution to address these edge cases and further refine the relationship between compression and perception.

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},
}
Figure