Abstract
Traditional superpixel algorithms are constrained by the discrete pixel grid, resulting in jagged "zigzag" boundaries that are resolution-dependent. This paper introduces RIMe (Resolution-Independent Mesh), a three-stage pipeline that transforms pixel-based superpixels into smooth polygonal meshes. By employing recursive straightening with color-guided thresholds and sub-pixel vertex positioning, RIMe produces compact, resolution-independent representations that maintain edge sharpness across scales. Evaluation on the Berkeley Segmentation Database demonstrates that RIMe achieves high visual quality and competitive benchmark performance while significantly improving compactness.
Introduction
In computer vision, superpixels—groups of neighboring pixels with similar colors—serve as a fundamental tool for reducing image complexity. However, popular algorithms like SLIC or SEEDS produce discrete boundaries that must follow the horizontal and vertical edges of the pixel grid. This constraint leads to two primary issues: the "zigzag effect," where boundaries appear as jagged staircases, and resolution dependence, where these artifacts become increasingly prominent when upscaling.
The RIMe algorithm addresses these limitations by bridging the gap between the discrete pixel world and the continuous physical world. It generates a resolution-independent mesh consisting of polygons with straight edges at sub-pixel resolution, allowing for perfect rendering at any scale.
Methodology: The RIMe Pipeline
The authors propose a three-stage pipeline to convert any existing pixel-based superpixel map into a refined polygonal mesh.
- Stage 1: Boundary Extraction: The algorithm traces the initial pixel cluster boundaries. It incorporates a specialized mechanism to handle "nested" superpixels, ensuring the final mesh is topologically sound.
- Stage 2: Recursive Straightening: This core stage replaces jagged pixel-edge chains with single straight segments. It utilizes a color-guided threshold: high color contrast between regions forces the algorithm to adhere closely to the original boundary, while low contrast allows for more aggressive straightening to improve compactness.
- Stage 3: Merging: Adjacent polygons with nearly identical average intensities are merged, further simplifying the mesh without sacrificing visual fidelity.
The algorithm operates in linear time relative to the number of boundary pixels and provides theoretical guarantees against edge intersection and the creation of "sliver" polygons.
Evaluation and Results
The method was evaluated using the Berkeley Segmentation Database (BSD), a standard benchmark containing 500 images with human-sketched ground truth.
Key Results
- Visual Quality and Accuracy: RIMe-processed superpixels (e.g., RIMe-SLIC and RIMe-SEEDS) significantly outperformed previous resolution-independent methods like Voronoi and CCM in Discrete Reconstruction Error (dRE). On standard metrics like Boundary Recall (BR) and Achievable Segmentation Accuracy (ASA), RIMe performed nearly as well as the original pixel-based versions, demonstrating that smoothing does not necessitate a loss in accuracy.
- Compactness: Polygonal superpixels were found to be approximately twice as compact as their pixel-based counterparts. This efficiency is highly beneficial for downstream geometric processing tasks.
- Efficiency: The SEEDS-RIMe variant is capable of processing images in a fraction of a second, making it suitable for practical applications.
Discussion and Future Work
A central philosophy of this work is that real-world color transitions are often gradual, making rigid grids fundamentally ill-suited for precise edge detection. By allowing vertices to exist at sub-pixel coordinates, RIMe can represent edges that pass through pixels rather than just along their boundaries. Furthermore, the parallelizable nature of the straightening stage offers potential for high-resolution video processing.
Currently, RIMe serves as a post-processing step and is dependent on the quality of the initial segmentation. Future research aims to develop algorithms that optimize vertex positions directly by minimizing an energy function that balances reconstruction error and compactness from the outset, potentially leading to even more precise meshes.
Summary updated