Documentation>MATLAB API>QUICKSHIFT - vl_flatmap

[LABELS CLUSTERS] = VL_FLATMAP(MAP) labels each tree of the forest contained in MAP. LABELS contains the linear index of the root node in MAP, CLUSTERS instead contains a label between 1 and the number of clusters.

See also: VL_HELP().