PANDORE Version 6 |
GREYC-IMAGE |
psimplelineariterativeclustering
Performs superpixel segmentation.
Synopsis
psimplelineariterativeclustering k m [-m mask] [im_in|-] [rg_out|-]
Description
The psimplelineariterativeclustering operator segmets the input image
into superpixels. The algorithm clusters pixels in the combined five-dimensional color
and image plane space to generate compact, nearly uniform superpixels.
The result is the region map rg_out.
Parameters
- k is the desired number of superpixels. Default is 200.
- m is the compactness factor. It is a value ranging from 10 to 40. Default is 10.
Inputs
Outputs
Result
Returns the number of regions or FAILURE.
Examples
Segments the tangram pieces:
psimplelineariterativeclustering 500 20 examples/tangram.pan a.pan
See also
Segmentation
C++ prototype
Errc PSimpleLinearIterativeClustering( const Imc2duc &ims, Imc2duc &imd, int k, float m );
Reference
"SLIC Superpixels", Radhakrishna Achanta, Appu Shaji, Kevin Smith, Aurelien Lucchi, Pascal Fua, and Sabine Susstrunk.
EPFL Technical Report no. 149300, June 2010.