NAME

segment - Segment an Image with Thresholding and the Fuzzy c-Means Technique


SYNOPSIS

colors=SegmentImage(image,colorspace,verbose)


FUNCTION DESCRIPTIONS


SegmentImage

Function SegmentImage analyzes the colors within a reference image and

The format of the SegmentImage routine is:

        colors=SegmentImage(image,colorspace,verbose)

A description of each parameter follows.

colors:
The SegmentImage function returns this integer value. It is the actual number of colors allocated in the colormap.

image:
Specifies a pointer to an Image structure; returned from ReadImage.

colorspace:
An unsigned integer 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.

verbose:
A value greater than zero prints detailed information about the identified classes.