[Paper Review] gSLICr: SLIC superpixels at over 250Hz
This paper presents gSLICr, a highly optimized GPU-accelerated implementation of the SLIC superpixel algorithm, achieving over 250Hz processing speed on a single GPU. By leveraging CUDA for parallel execution across image pixels and cluster centers, it accelerates the standard sequential SLIC by up to 83× while preserving identical segmentation quality.
We introduce a parallel GPU implementation of the Simple Linear Iterative Clustering (SLIC) superpixel segmentation. Using a single graphic card, our implementation achieves speedups of up to $83 imes$ from the standard sequential implementation. Our implementation is fully compatible with the standard sequential implementation and the software is now available online and is open source.
Motivation & Objective
- To address the performance bottleneck of real-time superpixel segmentation in computer vision pipelines.
- To enable fast, real-time superpixel generation without sacrificing segmentation quality or compactness.
- To provide a GPU-accelerated, open-source implementation fully compatible with the original SLIC algorithm.
- To support low-latency applications such as video tracking and interactive image processing.
Proposed method
- Utilizes the NVIDIA CUDA framework to parallelize SLIC operations across GPU threads.
- Converts input RGB images to CIELAB color space using one thread per pixel.
- Initializes cluster centers using one thread per superpixel, placing them on a regular grid spaced by S = √(N/K).
- Computes 5D distance Dₛ = d_lab + (m/S)·d_xy to assign each pixel to its nearest cluster center.
- Updates cluster centers via two-stage GPU kernel: first aggregating pixel data within local neighborhoods, then reducing to compute new centers.
- Enforces connectivity by relabeling stray pixels to match their dominant neighbors in a 2×2 neighborhood.
Experimental results
Research questions
- RQ1Can the SLIC superpixel algorithm be accelerated to real-time performance using GPU parallelism?
- RQ2To what extent can GPU acceleration improve SLIC's speed without degrading segmentation quality?
- RQ3Is it possible to maintain feature compatibility with the original SLIC implementation while achieving high throughput?
- RQ4How does the performance of the GPU-accelerated gSLICr compare to other state-of-the-art superpixel methods in terms of speed and accuracy?
Key findings
- gSLICr achieves processing speeds exceeding 250Hz for 640×480 images, enabling real-time superpixel segmentation.
- The implementation delivers up to 83× speedup over the original sequential CPU-based SLIC implementation.
- For a 1000-superpixel segmentation, gSLICr processes a 1024×1024 image in 0.01 seconds, compared to 0.73 seconds for standard SLIC.
- The method produces visually and quantitatively identical results to the original SLIC algorithm, ensuring feature compatibility.
- gSLICr maintains consistent performance across various image sizes and superpixel counts, demonstrating robustness.
- The open-source library is available on GitHub with minimal dependencies, supporting integration into existing vision pipelines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.