Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 46caac7f02ff55262dabd8b07acb99ef > files > 164

libMagick5-devel-5.4.2.3-3mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML>
<HEAD><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>segment - Methods to Segment an Image with Thresholding Fuzzy c-Means</TITLE>
<link rel="StyleSheet" href="../magick.css" type="text/css">
</HEAD>

<body bgcolor="#FFFFFF" text="#000000" link="#0085c0" alink="#0085c0"  vlink="#800080">

<A NAME="__index__"></A>
<!-- INDEX BEGIN -->

<UL>

	<LI><A HREF="#name">
<FONT SIZE=-1>NAME</FONT></A>
	<LI><A HREF="#synopsis">
<FONT SIZE=-1>SYNOPSIS</FONT></A>
	<LI><A HREF="#function descriptions">
<FONT SIZE=-1>FUNCTION</FONT> 
<FONT SIZE=-1>DESCRIPTIONS</FONT></A>
	<UL>

		<LI><A HREF="#segmentimage">SegmentImage</A>
	</UL>

</UL>
<!-- INDEX END -->

<HR>
<P>
<H1><A NAME="name">
<FONT SIZE=-1>NAME</FONT></A></H1>
<P>segment - Methods to Segment an Image with Thresholding Fuzzy c-Means</P>
<P>
<HR>
<H1><A NAME="synopsis">
<FONT SIZE=-1>SYNOPSIS</FONT></A></H1>
<P>unsigned int  <STRONG>SegmentImage</STRONG>( Image *image, const ColorspaceType colorspace, const unsigned int verbose, const double cluster_threshold, const double smoothing_threshold );</P>
<P>
<HR>
<H1><A NAME="function descriptions">
<FONT SIZE=-1>FUNCTION</FONT> 
<FONT SIZE=-1>DESCRIPTIONS</FONT></A></H1>
<P>
<H2><A NAME="segmentimage">SegmentImage</A></H2>
<P>Method SegmentImage segment an image by analyzing the histograms of the color components and identifying units that are homogeneous with the fuzzy c-means technique.</P>
<P>Specify cluster threshold as the number of pixels in each cluster must exceed the the cluster threshold to be considered valid.  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.</P>
<P>The format of the SegmentImage method is:</P>
<blockquote>unsigned int SegmentImage ( <A HREF="types/Image.html">Image</A> *image, const <A HREF="types/Enumerations.html#ColorspaceType">ColorspaceType</A> colorspace, const unsigned int verbose, const double cluster_threshold, const double smoothing_threshold ); </blockquote><P>
<FONT SIZE=-1>A</FONT> description of each parameter follows.</P>
<DL><DT><DD><DL>
<dd><p></p><dt><STRONG><A NAME="item_o_colors%3A">colors:</A></STRONG><BR>
<DD>
The SegmentImage function returns this integer value.  It is the actual number of colors allocated in the colormap.
<P></P>
<dd><p></p><dt><STRONG><A NAME="item_o_image%3A">image:</A></STRONG><BR>
<DD>
Specifies a pointer to an Image structure; returned from ReadImage.
<P></P>
<dd><p></p><dt><STRONG><A NAME="item_o_colorspace%3A">colorspace:</A></STRONG><BR>
<DD>
An unsigned integer value that indicates the colorspace.  Empirical evidence suggests that distances in 
<FONT SIZE=-1>YUV</FONT> or 
<FONT SIZE=-1>YIQ</FONT> correspond to perceptual color differences more closely than do distances in 
<FONT SIZE=-1>RGB</FONT> space.  The image is then returned to 
<FONT SIZE=-1>RGB</FONT> colorspace after color reduction.
<P></P>
<dd><p></p><dt><STRONG><A NAME="item_o_verbose%3A">verbose:</A></STRONG><BR>
<DD>

<FONT SIZE=-1>A</FONT> value greater than zero prints detailed information about the identified classes.
</DL></DL>

</BODY>

</HTML>