Image partitioning into convex polygons

Liuyun Duan, Florent LafargeCVPR 2015

Abstract

This paper introduces a novel method for over-segmenting images into a mesh of convex polygons, moving beyond traditional pixel-based "blob" regions. By leveraging Voronoi diagrams anchored to detected line segments and refined by gradient-driven point processes, the algorithm produces highly compact, geometrically consistent regions. This approach excels at capturing the structure of man-made environments and scales efficiently to massive 100-megapixel images, providing a robust foundation for high-level computer vision tasks.

Introduction

Most computer vision pipelines begin with "superpixel" segmentation—grouping pixels into small, atomic regions to reduce computational complexity. However, standard methods like SLIC or ERS operate at the pixel level and produce free-form contours that often ignore the inherent geometric structure of a scene, such as the straight lines and sharp corners common in architecture. Furthermore, traditional methods struggle with scalability; processing very high-resolution images often leads to prohibitive memory consumption.

The proposed method addresses these limitations by shifting the focus from pixel-grouping to geometric partitioning. By using Voronoi cells, every region is mathematically guaranteed to be a convex polygon, which simplifies downstream tasks like calculating distances or extracting convex hulls.

Conforming Voronoi partition applied to an architectural scene, demonstrating alignment with structural lines and varying seed densities.

Methods

The authors propose a three-stage pipeline that utilizes geometric primitives to define the image partition:

  1. Shape Detection & Consolidation: The algorithm first extracts line segments using a Line Segment Detector (LSD). Raw detections are consolidated to merge near-collinear segments and handle junctions, ensuring spatial coherence.
  2. Conforming Voronoi Partition: This core innovation forces partition boundaries to align with detected lines. The authors insert pairs of "anchors" (Voronoi seeds) on either side of each line segment. Due to the properties of Voronoi diagrams, the edge between these two seeds lies exactly on the detected line.
  3. Spatial Homogenization: To fill the spaces between detected lines, a Poisson-disk sampling process distributes additional seeds. The density of these seeds is guided by the image gradient—more seeds are placed near edges, while fewer are used in flat areas—allowing the partition to adapt to secondary boundaries while maintaining regular polygon sizes.
The three-stage pipeline illustrated on a portrait: line segment detection (left), conforming Voronoi partition (middle), and final spatial homogenization (right).

Key Results and Scalability

The method was evaluated using the BSDS500 dataset and large-scale satellite imagery of Denver and Manhattan.

  • Compactness and Recall: The proposed method significantly outperforms state-of-the-art superpixel methods in terms of region compactness. On images with strong geometric signatures, it remains highly competitive with SLIC in boundary recall, despite the rigid constraint of using only convex polygons.
  • Efficiency: By manipulating geometric entities (points and lines) rather than millions of individual pixels, the algorithm is exceptionally lightweight. It processed a 104-megapixel image in about 5 minutes using only 0.8 GB of memory. In contrast, the ERS method would require roughly 39 minutes and 34 GB of memory for the same task.
  • Sub-pixel Accuracy: Because the polygons are defined in a continuous domain, they can represent boundaries at a sub-pixel scale, which is particularly useful for high-precision mapping.

Conclusion

The primary strength of this approach is its ability to provide geometric guarantees and structural alignment with minimal computational overhead. While the method's performance on highly organic textures depends on the initial line segment detection, its unique adjacency graph and sub-pixel precision offer significant advantages for graph-based higher-level vision tasks. Future work may extend this framework to non-Euclidean spaces or incorporate more complex primitives like quadrics or B-splines to better capture curved objects.

Summary updated

BibTeX
@inproceedings{duan2015image,
  author = {Liuyun Duan and Florent Lafarge},
  title = {{Image partitioning into convex polygons}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  doi = {10.1109/cvpr.2015.7298931},
}
Figure