Logo Search packages:      
Sourcecode: jmagick version File versions  Download package

native int magick::MagickImage::segmentImage ( int  colorspace,
double  cluster_threshold,
double  smoothing_threshold 
) throws MagickException

Segment an image by analyzing the histograms of the color components and identifying units that are homogeneous using the fuzzy c-means technique.

colorspace A ColorspaceType value that indicates the colorspace. Empirical evidence suggests that distances in YUV or YIQ correspond to perceptual color differences more closely than do distances in RGB space. The image is then returned to RGB colorspace after color reduction.
cluster_threshold Specify cluster threshold as the number of pixels in each cluster must exceed the the cluster threshold to be considered valid.
smoothing_threshold Smoothing threshold eliminates noise in the second derivative of the histogram. As the value is increased, you can expect a smoother second derivative. The default is 1.5.
The actual number of colors allocated in the colormap.
MagickException on error
See also:

Generated by  Doxygen 1.6.0   Back to index