Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
generateSuperpixels

Implementation of various superpixel algorithms for generating over-segmentations of an image. Algorithms include:

Alternatively, can produce non-contiguous superpixels using k-means clustering (see the -m option).

Example:

bin/generateSuperpixels -g 100 -o <OUTPUT_SP_NAME> -x <IMAGE_FILENAME>
bin/visualizeSuperpixels -x -i <IMAGE_FILENAME> <INPUT_SP_NAME>

Multitple over-segmentations can be written to the same file using the -a option or multiple repeates of -g or -k. For example,

bin/generateSuperpixels -m SUPERPIXEL -g 10 -g 100 -o <OUTPUT_SP_NAME> <IMAGE_FILENAME>
bin/generateSuperpixels -m SLIC -g 10 -g 100 -a <OUTPUT_SP_NAME> <IMAGE_FILENAME>
bin/visualizeSuperpixels -x -i <IMAGE_FILENAME> <INPUT_SP_NAME>
See Also
drwnSLICSuperpixels
drwnFastSuperpixels
drwnKMeansSegments