1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>enhance - Enhance an Image</title>
<link rel="stylesheet" type="text/css" href="../magick.css">
</head>
<body marginheight="1" marginwidth="1" topmargin="1" leftmargin="1">
<a name="top"></a>
<table border="0" cellpadding="0" cellspacing="0" summary="Masthead" width="100%">
<tbody>
<tr>
<td bgcolor="#003399" width="25%" height="118" background="../../images/background.gif"><a href="http://www.imagemagick.org/"><img src="../../images/script.gif" width="278" height="118" border="0" alt="" /></a></td>
<td bgcolor="#003399" width="60%" height="118" background="../../images/background.gif"><a href="http://www.networkeleven.com/direct.php?magick_all"><img src="../../images/promote.png" border="0" width="186" height="52" vspace="29" alt="Powered by NetworkEleven" /></a></td>
<td bgcolor="#003399" width="114" height="118" align="right"><img src="../../images/sprite.png" width="114" height="118" alt="" /></td>
<td bgcolor="#003399" width="114" height="118" align="right"><a href="http://www.imagemagick.net"><img src="../../images/logo.png" width="114" height="118" border="0" alt="ImageMagick logo" /></a></td>
</tr></tbody></table>
<table align="left" border="0" cellpadding="2" cellspacing="2" summary="Navigation buttons" width="20%">
<tr>
<td>
<form target="_self" action="../../index.html"><input type="submit" title="ImageMagick Home" value=" Home" style="background-color: #1947A3; background-image:url('../../../images/background.gif'); color:#fbc713; font-weight:bold"></form></td>
<td>
<form target="_self" action="../../www/apis.html"><input type="submit" title="ImageMagick API" value=" API " style="background-color: #1947A3; background-image:url('../../../images/background.gif'); color:#fbc713; font-weight:bold"></form></td>
<td>
<form target="_self" action="../../www/archives.html"><input type="submit" title="ImageMagick Download" value="Download" style="background-color: #1947A3; background-image:url('../../../images/background.gif'); color:#fbc713; font-weight:bold"></form></td></tr></table>
<div align="right" style="margin-top:3px; padding-right:4px">
<form action="http://studio.imagemagick.org/Sage/scripts/Sage.cgi"><input type="TEXT" name="query" size="32" maxlength="255"> <input type="SUBMIT" name="sa" value="Search" style="background-color: #1947A3; background-image:url('../../../images/background.gif'); bgcolor:#003399; color:#fbc713; font-weight:bold"></form></div>
<table align="left" border="0" cellpadding="10" cellspacing="0" style="margin-top:-17px" width="100%">
<tr>
<td>
<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="#enhanceimage">EnhanceImage</a></li>
<li><a href="#equalizeimage">EqualizeImage</a></li>
<li><a href="#gammaimagechannel">GammaImageChannel</a></li>
<li><a href="#levelimagechannel">LevelImageChannel</a></li>
<li><a href="#modulateimage">ModulateImage</a></li>
<li><a href="#negateimagechannel">NegateImageChannel</a></li>
<li><a href="#normalizeimagechannel">NormalizeImageChannel</a></li>
</ul>
</ul>
<!-- INDEX END -->
<hr />
<P>
</P>
<h1><a name="name">NAME</a></h1>
<P>enhance - Enhance an Image</P>
<P>
</P>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<P>MagickBooleanType <strong>ContrastImage</strong>( Image *image, const MagickBooleanType sharpen );</P>
<P>Image * <strong>EnhanceImage</strong>( const Image *image, ExceptionInfo *exception );</P>
<P>MagickBooleanType <strong>EqualizeImage</strong>( Image *image );</P>
<P>MagickBooleanType <strong>GammaImageChannel</strong>( Image *image, const ChannelType channel, const double gamma );</P>
<P>MagickBooleanType <strong>LevelImageChannel</strong>( Image *image, const ChannelType channel, const char *levels );</P>
<P>MagickBooleanType <strong>ModulateImage</strong>( Image *image, const char *modulate );</P>
<P>MagickBooleanType <strong>NegateImageChannel</strong>( Image *image, const ChannelType channel, const MagickBooleanType grayscale );</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>MagickBooleanType ContrastImage ( <A HREF="types.html#Image">Image</A> *image, const MagickBooleanType sharpen ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_image_3a">image:</a></strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong><a name="item_o_sharpen_3a">sharpen:</a></strong><br />
</dt>
<DD>
Increase or decrease image contrast.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="enhanceimage">EnhanceImage</a></h2>
<blockquote>EnhanceImage() applies a digital filter that improves the quality of a noisy image. </blockquote><P>The format of the EnhanceImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *EnhanceImage ( const <A HREF="types.html#Image">Image</A> *image, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong><a name="item_o_exception_3a">exception:</a></strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></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>MagickBooleanType EqualizeImage ( <A HREF="types.html#Image">Image</A> *image ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="gammaimagechannel">GammaImageChannel</a></h2>
<P>Use <code>GammaImage()</code> to gamma-correct a particular image channel. 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.</P>
<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>MagickBooleanType GammaImageChannel ( <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#ChannelType">ChannelType</A> channel, const double gamma ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong><a name="item_o_channel_3a">channel:</a></strong><br />
</dt>
<DD>
The channel.
</dd>
<P></P>
<dt><strong><a name="item_o_gamma_3a">gamma:</a></strong><br />
</dt>
<DD>
The image gamma.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="levelimagechannel">LevelImageChannel</a></h2>
<P><code>LevelImage()</code> 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, and white points. The black point specifies the darkest color in the image. Colors darker than the black point are set to zero. Gamma 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.</P>
<P>The format of the LevelImage method is:</P>
<blockquote>MagickBooleanType LevelImageChannel ( <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#ChannelType">ChannelType</A> channel, const char *levels ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>channel:</strong><br />
</dt>
<DD>
The channel.
</dd>
<P></P>
<dt><strong><a name="item_o_levels_3a">levels:</a></strong><br />
</dt>
<DD>
Specify the levels where the black and white points have the
</dd>
<P></P></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>MagickBooleanType 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><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong><a name="item_o_modulate_3a">modulate:</a></strong><br />
</dt>
<DD>
Define the percent change in brightness, saturation, and hue.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="negateimagechannel">NegateImageChannel</a></h2>
<blockquote>NegateImageChannel() negates the colors in the reference image. The grayscale option means that only grayscale values within the image are negated. </blockquote><P>The format of the NegateImageChannel method is:</P>
<blockquote>MagickBooleanType NegateImageChannel ( <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#ChannelType">ChannelType</A> channel, const MagickBooleanType grayscale ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>channel:</strong><br />
</dt>
<DD>
The channel.
</dd>
<P></P>
<dt><strong><a name="item_o_grayscale_3a">grayscale:</a></strong><br />
</dt>
<DD>
If MagickTrue, only negate grayscale pixels within the image.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="normalizeimagechannel">NormalizeImageChannel</a></h2>
<blockquote>The NormalizeImageChannel() 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>
<pre>
MagickBooleanType NormalizeImage(Image *image,
const unsigned long channel)</pre>
<P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>channel:</strong><br />
</dt>
<DD>
The channel.
</dd>
</dl>
<HR>
<a href="#top"><img src="../../../images/top.gif" border=0 width=42 height=42 align="right" alt="Top of page"></a>
<form action="http://studio.imagemagick.org/magick/" style="margin-top:5px">
<input type="submit" title="Help!" value="Help!" style="background-image:url('../../../images/background.gif'); color:#fbc713; font-weight:bold">
<small>"Image manipulation software that works like magick"</small>
</form></td>
</tr></table>
</body>
</html>
|