NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

BAYESIAN IMAGE SEGMENTATION THROUGH LEVEL LINES SELECTION

Charles KervrannImage 2011

Abstract

Bayesian statistical theory is a convenient way of taking a priori information into consideration when inference is made from images. In Bayesian image segmentation, the a priori distribution should capture the knowledge about objects. Taking inspiration from (Alvarez et al., 1999), we design a prior density that penalizes the area of homogeneous parts in images. The segmentation problem is further formulated as the estimation of the set of curves that maximizes the posterior distribution. In this paper, we explore a posterior distribution model for which its maximal mode is given by a subset of level curves, that is the boundaries of image level sets. For the completeness of the paper, we present a stepwise greedy algorithm for computing partitions with connected components.

Introduction

Image segmentation—the process of partitioning an image into meaningful objects—is a cornerstone of computer vision. Despite its importance, it remains computationally challenging. Classic approaches, such as the Mumford-Shah functional or active contour models ("snakes"), often face two significant hurdles: high optimization complexity due to non-convex energy functionals and extreme sensitivity to initial conditions. This paper proposes a Bayesian framework that addresses these issues by incorporating prior knowledge of object statistics and restricting the search space for boundaries to the image's inherent "level lines."

Methodology

The proposed method utilizes Maximum A Posteriori (MAP) estimation to find the optimal segmentation. The posterior distribution is defined by two primary components:

  1. Likelihood (Data Model): A fidelity term that assumes the image is piecewise constant, subject to Gaussian noise.
  2. Prior Model: A density function that penalizes the area of objects $|\Omega|$ according to a power law ($\beta |\Omega|^{-\gamma}$). This choice is motivated by the observed statistics of natural images, where the number of objects typically scales inversely with their size.
Power law distribution of object areas used for the prior model.

The Level Lines Breakthrough

A key theoretical contribution of this work is the proof (Lemma 1) that for the chosen energy functional, the optimal boundaries must be a subset of the image's level lines (the boundaries of its level sets). This result significantly simplifies the problem: instead of searching for arbitrary curves in the image plane, the algorithm only needs to select from the topography already present in the image.

The Stepwise Greedy Algorithm

To efficiently navigate the combinatorial space of level lines, a four-step pipeline is employed:

  1. Bilevel Set Construction: The image is quantized into $K$ levels (e.g., 4 or 8) using maximum entropy.
  2. Object Extraction: Connected components are identified and filtered by a minimum area threshold ($\Omega_{min}$).
  3. Configuration Determination: These components form a "bank" of candidate objects.
  4. Greedy Selection: Starting from an empty set, the algorithm iteratively adds the candidate object that yields the greatest decrease in global energy.

Experimental Results

The algorithm was tested on diverse datasets, including satellite imagery and medical MRI scans.

Satellite Imagery

In a 256x256 aerial photo of Saint-Louis (1993), the algorithm successfully separated smooth river surfaces from highly textured urban areas. This is a task where traditional edge-based methods often struggle due to noise. The greedy approach processed 291 candidate objects, selecting 105 to form the final segmentation in approximately 15 seconds on a 296 MHz workstation.

Segmentation result for the Saint-Louis satellite image.

Medical Imaging

The method was also applied to brain MRI data to segment grey and white matter. Even with a low number of quantization levels ($K=8$), the system effectively partitioned anatomical structures, demonstrating that the level-line restriction preserves essential detail while maintaining computational efficiency.

Conclusion

By bridging Bayesian statistics with morphological image processing, this framework transforms a complex global optimization problem into a manageable selection task. The use of an area-based prior proves robust against texture, and the level-line constraint provides a mathematically grounded shortcut to finding optimal boundaries. Future work will explore non-linear scale-spaces to automatically identify meaningful regions across varying resolutions.

Summary updated

BibTeX
@inproceedings{kervrann2011bayesian,
  author = {Charles Kervrann},
  title = {{BAYESIAN IMAGE SEGMENTATION THROUGH LEVEL LINES SELECTION}},
  booktitle = {Image},
  year = {2011},
  doi = {10.5566/ias.v20.p163-168},
}
Figure