SLIC is superpixel extraction (segmentation) method based on a local version of k-means. For a detailed description of the algorithm, see the SLIC API reference.
This demo shows how to use SLIC to extract superpixels from this image:
In the simplest form, SLIC can be called as:
By making varting regionSize
and
regularizer
one obtains the segmentations:
regionSize
spaning the values 10,30, and
regularizer
the values 0.01, 0.1, 1.SLIC is often intended to be applied on top of LAB rather than RGB
images. To do this, simpyl convert the image to LAB format before
calling vl_slic
.