Sophie

Sophie

distrib > Mandriva > mes5 > x86_64 > by-pkgid > 0d81a008159b90d5a3553d84969a208b > files > 91

graphicsmagick-doc-1.2.5-2.3mdvmes5.2.x86_64.rpm

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>enhance - Methods to enhance or adjust an image</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:bfriesen@freddy.simplesystems.org" />
</head>

<body style="background-color: white">

<P><a name="__index__"></a></P>
<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#function_descriptions">FUNCTION DESCRIPTIONS</a></li>
	<ul>

		<li><a href="#contrastimage">ContrastImage</a></li>
		<li><a href="#equalizeimage">EqualizeImage</a></li>
		<li><a href="#gammaimage">GammaImage</a></li>
		<li><a href="#levelimage">LevelImage</a></li>
		<li><a href="#levelimagechannel">LevelImageChannel</a></li>
		<li><a href="#modulateimage">ModulateImage</a></li>
		<li><a href="#negateimage">NegateImage</a></li>
		<li><a href="#normalizeimage">NormalizeImage</a></li>
	</ul>

</ul>
<!-- INDEX END -->

<hr />
<P>
</P>
<h1><a name="name">NAME</a></h1>
<P>enhance - Methods to enhance or adjust an image</P>
<P>
</P>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<P>unsigned int  <strong>ContrastImage</strong>( Image *image, const unsigned int sharpen );</P>
<P>unsigned int  <strong>EqualizeImage</strong>( Image *image );</P>
<P>unsigned int  <strong>GammaImage</strong>( Image *image, const char *level );</P>
<P>unsigned int  <strong>LevelImage</strong>( Image *image, const char *level );</P>
<P>unsigned int  <strong>LevelImageChannel</strong>( Image *image, const char *level, const ChannelType channel, const double black_point, const double mid_point, const double white_point );</P>
<P>unsigned int  <strong>ModulateImage</strong>( Image *image, const char *modulate );</P>
<P>unsigned int  <strong>NegateImage</strong>( Image *image, const unsigned int grayscale );</P>
<P>unsigned int  <strong>NormalizeImage</strong>( Image *image );</P>
<P>
</P>
<hr />
<h1><a name="function_descriptions">FUNCTION DESCRIPTIONS</a></h1>
<P>
</P>
<h2><a name="contrastimage">ContrastImage</a></h2>
<blockquote>ContrastImage() enhances the intensity differences between the lighter and darker elements of the image. Set sharpen to a value other than 0 to increase the image contrast otherwise the contrast is reduced. </blockquote><P>The format of the ContrastImage method is:</P>
<blockquote>unsigned int ContrastImage ( <A HREF="types.html#Image">Image</A> *image, const unsigned int sharpen ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_image_3a">image:</a></strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong><a name="item_o_sharpen_3a">sharpen:</a></strong>

<DD>
<P>Increase or decrease image contrast.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="equalizeimage">EqualizeImage</a></h2>
<blockquote>EqualizeImage() applies a histogram equalization to the image. </blockquote><P>The format of the EqualizeImage method is:</P>
<blockquote>unsigned int EqualizeImage ( <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="gammaimage">GammaImage</a></h2>
<blockquote>Use GammaImage() to gamma-correct an image. The same image viewed on different devices will have perceptual differences in the way the image's intensities are represented on the screen. Specify individual gamma levels for the red, green, and blue channels, or adjust all three with the gamma parameter. Values typically range from 0.8 to 2.3. </blockquote><P>You can also reduce the influence of a particular channel with a gamma value of 0.</P>
<P>The format of the GammaImage method is:</P>
<blockquote>unsigned int GammaImage ( <A HREF="types.html#Image">Image</A> *image, const char *level ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong><a name="item_o_level_3a">level:</a></strong>

<DD>
<P>Define the level of gamma correction.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="levelimage">LevelImage</a></h2>
<blockquote>LevelImage() adjusts the levels of an image by scaling the colors falling between specified white and black points to the full available quantum range. The parameters provided represent the black, mid ( gamma ), and white points. The black point specifies the darkest color in the image. Colors darker than the black point are set to zero. Mid point specifies a gamma correction to apply to the image. White point specifies the lightest color in the image. Colors brighter than the white point are set to the maximum quantum value. </blockquote><P>The format of the LevelImage method is:</P>
<blockquote>unsigned int LevelImage ( <A HREF="types.html#Image">Image</A> *image, const char *level ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong><a name="item_o_levels_3a">levels:</a></strong>

<DD>
<P>Specify the levels as a string of the form ``black/mid/white'' (e.g.  ``10,1.0,65000) where black and white have the range of 0-MaxRGB, and mid has the range 0-10.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="levelimagechannel">LevelImageChannel</a></h2>
<blockquote>LevelImageChannel() adjusts the levels of a particular image channel by scaling the colors falling between specified white and black points to the full available quantum range. The parameters provided represent the black, mid ( gamma ), and white points. The black point specifies the darkest color in the image. Colors darker than the black point are set to zero. Mid point specifies a gamma correction to apply to the image. White point specifies the lightest color in the image. Colors brighter than the white point are set to the maximum quantum value. </blockquote><P>The format of the LevelImage method is:</P>
<blockquote>unsigned int LevelImageChannel ( <A HREF="types.html#Image">Image</A> *image, const char *level, const <A HREF="types.html#ChannelType">ChannelType</A> channel, const double black_point, const double mid_point, const double white_point ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong><a name="item_o_channel_3a">channel:</a></strong>

<DD>
<P>Identify which channel to level: Red, Cyan, Green, Magenta, Blue, Yellow, or Opacity.</P>
</dd>
</li>
<dt><strong><a name="item_o_black_point_2c_mid_point_2c_white_point_3a">black_point, mid_point, white_point:</a></strong>

<DD>
<P>Specify the levels where the black and white points have the range of 0-MaxRGB, and mid has the range 0-10.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="modulateimage">ModulateImage</a></h2>
<blockquote>ModulateImage() lets you control the brightness, saturation, and hue of an image. Modulate represents the brightness, saturation, and hue as one parameter ( e.g. 90, 150, 100 ) . </blockquote><P>The format of the ModulateImage method is:</P>
<blockquote>unsigned int ModulateImage ( <A HREF="types.html#Image">Image</A> *image, const char *modulate ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
<dt><strong><a name="item_o_modulate_3a">modulate:</a></strong>

<DD>
<P>Define the percent change in brightness, saturation, and hue.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="negateimage">NegateImage</a></h2>
<P>Method NegateImage negates the colors in the reference image.  The Grayscale option means that only grayscale values within the image are negated.</P>
<P>The format of the NegateImage method is:</P>
<blockquote>unsigned int NegateImage ( <A HREF="types.html#Image">Image</A> *image, const unsigned int grayscale ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</li>
</dl>
<P>
</P>
<h2><a name="normalizeimage">NormalizeImage</a></h2>
<blockquote>The NormalizeImage() method enhances the contrast of a color image by adjusting the pixels color to span the entire range of colors available. </blockquote><P>The format of the NormalizeImage method is:</P>
<blockquote>unsigned int NormalizeImage ( <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong>

<DD>
<P>The image.</P>
</dd>
</dl>

</body>

</html>