cv.SuperpixelSLIC/SuperpixelSLIC - MATLAB File Help |
Initialize a SuperpixelSLIC object
obj = cv.SuperpixelSLIC(img)
obj = cv.SuperpixelSLIC(img, 'OptionName',optionValue, ...)
RegionSize
and
compactness factor Ruler
(the same compactnes for all
superpixels in the image).RegionSize
, and
in addition will choose an adaptive compactness factor for
each superpixel differently. This is the default.The function initializes a SuperpixelSLIC object for the input
image. It sets the parameters of choosed superpixel algorithm,
which are: RegionSize
and Ruler
. It preallocate some buffers
for future computing iterations over the given image.
For enanched results it is recommended for color images to preprocess image with little gaussian blur using a small 3x3 kernel and additional conversion into CIELAB color space.
An example of SLIC versus SLICO and MSLIC is ilustrated in the following picture.