cv.SuperpixelLSC/SuperpixelLSC - MATLAB File Help |
Class implementing the LSC (Linear Spectral Clustering) superpixels
obj = cv.SuperpixelLSC(img)
obj = cv.SuperpixelLSC(img, 'OptionName',optionValue, ...)
The function initializes a SuperpixelLSC object for the input
image. It sets the parameters of superpixel algorithm, which
are: RegionSize
and Ratio
. It preallocate some buffers for
future computing iterations over the given image. An example of
LSC is ilustrated in the following picture.
For enanched results it is recommended for color images to
preprocess image with little gaussian blur with a small 3x3
kernel and additional conversion into CieLAB color space.