PANDORE Version 6 GREYC-IMAGE

pmeanshiftsegmentation



Performs pixel classification on image using mean shift algorithm.



Synopsis

pmeanshiftsegmentation spatial-bandwidth range-bandwidth minimum-region-area accuracy-level [-m mask] [im_in|-] [rg_out|-]

Description

The pmeanshiftsegmentation classifies the input image pixels into regions using color homogeneity. It is a procedure for locating the maxima of a density function given discrete data sampled from that function. The algorithm is based on the detection of the modes of this density function.

The parameters controls the classification process. The spatial-bandwidth controls the size of the search window when computing mean shift. The range-bandwidth controls the color vicinity for homogeneous regions. The more the spatial-bandwidth and the range-bandwith, the less number of regions.

The result is the region map rg_out.

Parameters

Inputs

Outputs

Result

Returns the number of regions or FAILURE.

Examples

Segments the tangram pieces:

  pmeanshiftsegmentation 7 6.5 100 0 examples/tangram.pan a.pan

See also

Segmentation

C++ prototype

Errc PMeanShiftSegmentation( const Imc2duc &ims, Reg2d &rgd, int spatialBandwidth, float rangeBandwidth, int minimumRegionArea, int accuracyLevel );

Reference

D. Comanicu, P. Meer: "Mean shift: A robust approach toward feature space analysis." IEEE Trans. Pattern Anal. Machine Intell., 24, 603-619, May 2002

Author: Régis Clouard