SLIC CUDA


A superpixel is a local group of pixels that share similar colors. Segmenting an image into superpixels offers several advantages. Working at the superpixel level, rather than the pixel level, reduces the number of units that need processing. Additionally, superpixels align with object boundaries, making them an excellent tool for object segmentation. However, to be useful as a preprocessing step, a superpixel algorithm needs to be fast. To address this, I implemented a GPU version of the SLIC superpixel segmentation algorithm, which can now run at 24 FPS on a 1920x1080 image using a GTX 970M.

  • C++
  • OpenCV
  • CUDA

SLIC CUDA is now integrated into the LITIV Computer Vision Framework but you can still find a standalone version at the link below.
Input
Superpixel Segmentation
Mean RGB