cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
| 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
cristy | 2c83960 | 2010-04-03 02:32:08 +0000 | [diff] [blame] | 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 4 | <head>
|
cristy | 3c98a4f | 2010-08-13 20:09:41 +0000 | [diff] [blame] | 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
| 6 | <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>
|
cristy | ffb69ed | 2010-12-25 00:06:48 +0000 | [diff] [blame^] | 7 | <title>ImageMagick: MagickCore, C API for ImageMagick: Add an Effect</title> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8 | <meta http-equiv="Content-Language" content="en-US"/> |
| 9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 10 | <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/> |
cristy | 3c98a4f | 2010-08-13 20:09:41 +0000 | [diff] [blame] | 11 | <meta name="Application-name" content="ImageMagick"/> |
cristy | ffb69ed | 2010-12-25 00:06:48 +0000 | [diff] [blame^] | 12 | <meta name="Description" content="ImageMagick is a software suite to create, edit, or compose bitmap images in a variety of formats. Use ImageMagick to scale, rotate, shear, distort and transform images."/> |
cristy | 3c98a4f | 2010-08-13 20:09:41 +0000 | [diff] [blame] | 13 | <meta name="Application-url" content="http://www.imagemagick.org"/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14 | <meta name="Generator" content="PHP"/> |
| 15 | <meta name="Keywords" content="magickcore, c, api, for, imagemagick:, add, an, effect, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16 | <meta name="Rating" content="GENERAL"/> |
| 17 | <meta name="Robots" content="INDEX, FOLLOW"/> |
| 18 | <meta name="Generator" content="ImageMagick Studio LLC"/> |
| 19 | <meta name="Author" content="ImageMagick Studio LLC"/> |
| 20 | <meta name="Revisit-after" content="2 DAYS"/> |
| 21 | <meta name="Resource-type" content="document"/> |
cristy | 4103d56 | 2010-12-10 01:38:54 +0000 | [diff] [blame] | 22 | <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23 | <meta name="Distribution" content="Global"/> |
cristy | 3c98a4f | 2010-08-13 20:09:41 +0000 | [diff] [blame] | 24 | <link rel="icon" href="../../images/wand.png" sizes="32x32"/> |
| 25 | <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/> |
| 26 | <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
|
| 27 | <style type="text/css" media="all">
|
| 28 | @import url("../../www/magick.css");
|
| 29 | </style>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 30 | </head>
|
| 31 |
|
| 32 | <body id="www-imagemagick-org">
|
| 33 | <div class="titlebar">
|
| 34 | <a href="../../index.html">
|
| 35 | <img src="../../images/script.png" alt="[ImageMagick]"
|
| 36 | style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
|
| 37 | <a href="http://www.networkredux.com">
|
| 38 | <img src="../../images/networkredux.png" alt="[sponsor]"
|
| 39 | style="margin: 45px auto; border: 0px; float: left;" /></a>
|
| 40 | <a href="http://www.imagemagick.org/discourse-server/">
|
| 41 | <img src="../../images/logo.jpg" alt=""
|
| 42 | style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
|
| 43 | <a href="../../index.html">
|
| 44 | <img src="../../images/sprite.jpg" alt=""
|
| 45 | style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
|
| 46 | </div>
|
| 47 |
|
cristy | ce69bb0 | 2010-07-27 19:49:46 +0000 | [diff] [blame] | 48 | <div class="westbar">
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 49 |
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 50 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 51 | <a title="About ImageMagick" href="../../index.html">About ImageMagick</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 52 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 53 | <div class="sep"></div>
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 54 | <div class="menu"> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 55 | <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a> |
| 56 | </div> |
| 57 | <div class="sub"> |
| 58 | <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a> |
| 59 | </div> |
| 60 | <div class="sub"> |
| 61 | <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a> |
| 62 | </div> |
| 63 | <div class="sub"> |
| 64 | <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a> |
| 65 | </div> |
| 66 | <div class="sep"></div>
|
| 67 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 68 | <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 69 | </div> |
| 70 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 71 | <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 72 | </div> |
| 73 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 74 | <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 75 | </div> |
| 76 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 77 | <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 78 | </div> |
| 79 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 80 | <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 81 | </div> |
| 82 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 83 | <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 84 | </div> |
| 85 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 86 | <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 87 | </div> |
| 88 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 89 | <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 90 | </div> |
| 91 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 92 | <a title="Program Interface: Magick++" href="../../Magick++/">Magick++</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 93 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 94 | <div class="sep"></div>
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 95 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 96 | <a title="Install from Source" href="../../www/install-source.html">Install from Source</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 97 | </div> |
| 98 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 99 | <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 100 | </div> |
| 101 | <div class="sub"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 102 | <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 103 | </div> |
| 104 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 105 | <a title="Resources" href="../../www/resources.html">Resources</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 106 | </div> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 107 | <div class="menu"> |
| 108 | <a title="Architecture" href="../../www/architecture.html">Architecture</a> |
| 109 | </div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 110 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 111 | <a title="Download" href="../../www/download.html">Download</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 112 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 113 | <div class="sep"></div>
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 114 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 115 | <a title="Search" href="../http://www.imagemagick.org/script/search.php">Search</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 116 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 117 | <div class="sep"></div>
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 118 | <div class="menu"> |
cristy | ffb69ed | 2010-12-25 00:06:48 +0000 | [diff] [blame^] | 119 | <a title="Site Map" href="../../www/sitemap.html">Site Map</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 120 | </div> |
| 121 | <div class="sub"> |
cristy | ffb69ed | 2010-12-25 00:06:48 +0000 | [diff] [blame^] | 122 | <a title="Site Map: Links" href="../../www/links.html">Links</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 123 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 124 | <div class="sep"></div>
|
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 125 | <div class="menu"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 126 | <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 127 | |
| 128 | <div class="sponsbox"> |
| 129 | <div class="sponsor"> |
cristy | 6110536 | 2010-12-19 23:22:14 +0000 | [diff] [blame] | 130 | <a title="Sponsor: alaTest.com" href="http://alatest.com">alaTest.com</a><!-- 20110801000300 --> |
cristy | 73fd1cd | 2010-09-12 19:14:25 +0000 | [diff] [blame] | 131 | </div> |
| 132 | <div class="sponsor"> |
cristy | 7d52cd6 | 2010-10-01 17:26:59 +0000 | [diff] [blame] | 133 | <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 --> |
| 134 | </div> |
| 135 | <div class="sponsor"> |
cristy | c5baf4f | 2010-08-31 15:05:33 +0000 | [diff] [blame] | 136 | <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee--> |
| 137 | </div> |
| 138 | <div class="sponsor"> |
cristy | 851dbce | 2010-08-06 21:40:00 +0000 | [diff] [blame] | 139 | <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter--> |
| 140 | </div> |
| 141 | <div class="sponsor"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 142 | <a title="Sponsor: Webdesign Agentur" href="http://www.ventzke-partner.de">Webdesign Agentur</a><!-- 201101010480 invendio.de--> |
cristy | 9b5852d | 2010-03-08 18:18:01 +0000 | [diff] [blame] | 143 | </div> |
| 144 | <div class="sponsor"> |
cristy | 83a272e | 2010-05-07 20:40:35 +0000 | [diff] [blame] | 145 | <a title="Sponsor: LVM Versicherung" href="http://www.neu-reich.de">LVM Versicherung</a><!-- 201101010480 --> |
cristy | 8f90012 | 2010-03-05 15:26:31 +0000 | [diff] [blame] | 146 | </div> |
| 147 | <div class="sponsor"> |
cristy | c5baf4f | 2010-08-31 15:05:33 +0000 | [diff] [blame] | 148 | <a title="Sponsor: Diamonds are a Girls Best Friend" href="http://www.schmuck.org">Diamonds are a Girls Best Friend</a><!-- 201101010600 Peterssen--> |
cristy | 916e192 | 2009-10-01 12:52:47 +0000 | [diff] [blame] | 149 | </div> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 150 | </div> |
| 151 | </div> |
cristy | ce69bb0 | 2010-07-27 19:49:46 +0000 | [diff] [blame] | 152 | </div>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 153 |
|
cristy | ce69bb0 | 2010-07-27 19:49:46 +0000 | [diff] [blame] | 154 | <div class="eastbar">
|
| 155 | <script type="text/javascript">
|
| 156 | <!--
|
| 157 | google_ad_client = "pub-3129977114552745";
|
cristy | ce69bb0 | 2010-07-27 19:49:46 +0000 | [diff] [blame] | 158 | google_ad_slot = "0574824969";
|
| 159 | google_ad_width = 160;
|
| 160 | google_ad_height = 600;
|
| 161 | //-->
|
| 162 | </script>
|
| 163 | <script type="text/javascript"
|
| 164 | src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
| 165 | </script>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 166 | </div>
|
| 167 |
|
| 168 | <div class="main">
|
| 169 |
|
cristy | 16ff93c | 2010-01-13 23:18:07 +0000 | [diff] [blame] | 170 | <p class="navigation-index">[<a href="#AdaptiveBlurImage">AdaptiveBlurImage</a> • <a href="#AdaptiveSharpenImage">AdaptiveSharpenImage</a> • <a href="#BlurImage">BlurImage</a> • <a href="#ConvolveImage">ConvolveImage</a> • <a href="#DespeckleImage">DespeckleImage</a> • <a href="#EdgeImage">EdgeImage</a> • <a href="#EmbossImage">EmbossImage</a> • <a href="#FilterImage">FilterImage</a> • <a href="#GaussianBlurImage">GaussianBlurImage</a> • <a href="#MedianFilterImage">MedianFilterImage</a> • <a href="#MotionBlurImage">MotionBlurImage</a> • <a href="#PreviewImage">PreviewImage</a> • <a href="#RadialBlurImage">RadialBlurImage</a> • <a href="#ReduceNoiseImage">ReduceNoiseImage</a> • <a href="#SelectiveBlurImage">SelectiveBlurImage</a> • <a href="#ShadeImage">ShadeImage</a> • <a href="#SharpenImage">SharpenImage</a> • <a href="#SpreadImage">SpreadImage</a> • <a href="#UnsharpMaskImage">UnsharpMaskImage</a>]</p> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 171 | |
| 172 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 173 | _8c.html" target="source" name="AdaptiveBlurImage">AdaptiveBlurImage</a></h2> |
| 174 | <div class="doc-section"> |
| 175 | |
| 176 | <p>AdaptiveBlurImage() adaptively blurs the image by blurring less intensely near image edges and more intensely far from edges. We blur the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and AdaptiveBlurImage() selects a suitable radius for you.</p></ol> |
| 177 | |
| 178 | <p>The format of the AdaptiveBlurImage method is:</p> |
| 179 | |
| 180 | <pre class="code"> |
| 181 | Image *AdaptiveBlurImage(const Image *image,const double radius, |
| 182 | const double sigma,ExceptionInfo *exception) |
| 183 | Image *AdaptiveBlurImageChannel(const Image *image, |
| 184 | const ChannelType channel,double radius,const double sigma, |
| 185 | ExceptionInfo *exception) |
| 186 | </pre> |
| 187 | |
| 188 | <p>A description of each parameter follows:</p></ol> |
| 189 | |
| 190 | <h5>image</h5> |
| 191 | <ol><p>the image.</p></ol> |
| 192 | |
| 193 | <h5>channel</h5> |
| 194 | <ol><p>the channel type.</p></ol> |
| 195 | |
| 196 | <h5>radius</h5> |
| 197 | <ol><p>the radius of the Gaussian, in pixels, not counting the center pixel.</p></ol> |
| 198 | |
| 199 | <h5>sigma</h5> |
| 200 | <ol><p>the standard deviation of the Laplacian, in pixels.</p></ol> |
| 201 | |
| 202 | <h5>exception</h5> |
| 203 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 204 | |
| 205 | </div> |
| 206 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 207 | _8c.html" target="source" name="AdaptiveSharpenImage">AdaptiveSharpenImage</a></h2> |
| 208 | <div class="doc-section"> |
| 209 | |
| 210 | <p>AdaptiveSharpenImage() adaptively sharpens the image by sharpening more intensely near image edges and less intensely far from edges. We sharpen the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and AdaptiveSharpenImage() selects a suitable radius for you.</p></ol> |
| 211 | |
| 212 | <p>The format of the AdaptiveSharpenImage method is:</p> |
| 213 | |
| 214 | <pre class="code"> |
| 215 | Image *AdaptiveSharpenImage(const Image *image,const double radius, |
| 216 | const double sigma,ExceptionInfo *exception) |
| 217 | Image *AdaptiveSharpenImageChannel(const Image *image, |
| 218 | const ChannelType channel,double radius,const double sigma, |
| 219 | ExceptionInfo *exception) |
| 220 | </pre> |
| 221 | |
| 222 | <p>A description of each parameter follows:</p></ol> |
| 223 | |
| 224 | <h5>image</h5> |
| 225 | <ol><p>the image.</p></ol> |
| 226 | |
| 227 | <h5>channel</h5> |
| 228 | <ol><p>the channel type.</p></ol> |
| 229 | |
| 230 | <h5>radius</h5> |
| 231 | <ol><p>the radius of the Gaussian, in pixels, not counting the center pixel.</p></ol> |
| 232 | |
| 233 | <h5>sigma</h5> |
| 234 | <ol><p>the standard deviation of the Laplacian, in pixels.</p></ol> |
| 235 | |
| 236 | <h5>exception</h5> |
| 237 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 238 | |
| 239 | </div> |
| 240 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 241 | _8c.html" target="source" name="BlurImage">BlurImage</a></h2> |
| 242 | <div class="doc-section"> |
| 243 | |
| 244 | <p>BlurImage() blurs an image. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, the radius should be larger than sigma. Use a radius of 0 and BlurImage() selects a suitable radius for you.</p></ol> |
| 245 | |
| 246 | <p>BlurImage() differs from GaussianBlurImage() in that it uses a separable kernel which is faster but mathematically equivalent to the non-separable kernel.</p></ol> |
| 247 | |
| 248 | <p>The format of the BlurImage method is:</p> |
| 249 | |
| 250 | <pre class="code"> |
| 251 | Image *BlurImage(const Image *image,const double radius, |
| 252 | const double sigma,ExceptionInfo *exception) |
| 253 | Image *BlurImageChannel(const Image *image,const ChannelType channel, |
| 254 | const double radius,const double sigma,ExceptionInfo *exception) |
| 255 | </pre> |
| 256 | |
| 257 | <p>A description of each parameter follows:</p></ol> |
| 258 | |
| 259 | <h5>image</h5> |
| 260 | <ol><p>the image.</p></ol> |
| 261 | |
| 262 | <h5>channel</h5> |
| 263 | <ol><p>the channel type.</p></ol> |
| 264 | |
| 265 | <h5>radius</h5> |
| 266 | <ol><p>the radius of the Gaussian, in pixels, not counting the center pixel.</p></ol> |
| 267 | |
| 268 | <h5>sigma</h5> |
| 269 | <ol><p>the standard deviation of the Gaussian, in pixels.</p></ol> |
| 270 | |
| 271 | <h5>exception</h5> |
| 272 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 273 | |
| 274 | </div> |
| 275 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
cristy | 6b63665 | 2009-12-05 17:16:11 +0000 | [diff] [blame] | 276 | _8c.html" target="source" name="ConvolveImage">ConvolveImage</a></h2> |
| 277 | <div class="doc-section"> |
| 278 | |
| 279 | <p>ConvolveImage() applies a custom convolution kernel to the image.</p></ol> |
| 280 | |
| 281 | <p>The format of the ConvolveImage method is:</p> |
| 282 | |
| 283 | <pre class="code"> |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 284 | Image *ConvolveImage(const Image *image,const size_t order, |
cristy | 6b63665 | 2009-12-05 17:16:11 +0000 | [diff] [blame] | 285 | const double *kernel,ExceptionInfo *exception) |
| 286 | Image *ConvolveImageChannel(const Image *image,const ChannelType channel, |
cristy | bc9539a | 2010-08-16 18:06:20 +0000 | [diff] [blame] | 287 | const size_t order,const double *kernel,ExceptionInfo *exception) |
cristy | 6b63665 | 2009-12-05 17:16:11 +0000 | [diff] [blame] | 288 | </pre> |
| 289 | |
| 290 | <p>A description of each parameter follows:</p></ol> |
| 291 | |
| 292 | <h5>image</h5> |
| 293 | <ol><p>the image.</p></ol> |
| 294 | |
| 295 | <h5>channel</h5> |
| 296 | <ol><p>the channel type.</p></ol> |
| 297 | |
| 298 | <h5>order</h5> |
| 299 | <ol><p>the number of columns and rows in the filter kernel.</p></ol> |
| 300 | |
| 301 | <h5>kernel</h5> |
| 302 | <ol><p>An array of double representing the convolution kernel.</p></ol> |
| 303 | |
| 304 | <h5>exception</h5> |
| 305 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 306 | |
| 307 | </div> |
| 308 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 309 | _8c.html" target="source" name="DespeckleImage">DespeckleImage</a></h2> |
| 310 | <div class="doc-section"> |
| 311 | |
| 312 | <p>DespeckleImage() reduces the speckle noise in an image while perserving the edges of the original image.</p></ol> |
| 313 | |
| 314 | <p>The format of the DespeckleImage method is:</p> |
| 315 | |
| 316 | <pre class="code"> |
| 317 | Image *DespeckleImage(const Image *image,ExceptionInfo *exception) |
| 318 | </pre> |
| 319 | |
| 320 | <p>A description of each parameter follows:</p></ol> |
| 321 | |
| 322 | <h5>image</h5> |
| 323 | <ol><p>the image.</p></ol> |
| 324 | |
| 325 | <h5>exception</h5> |
| 326 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 327 | |
| 328 | </div> |
| 329 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 330 | _8c.html" target="source" name="EdgeImage">EdgeImage</a></h2> |
| 331 | <div class="doc-section"> |
| 332 | |
| 333 | <p>EdgeImage() finds edges in an image. Radius defines the radius of the convolution filter. Use a radius of 0 and EdgeImage() selects a suitable radius for you.</p></ol> |
| 334 | |
| 335 | <p>The format of the EdgeImage method is:</p> |
| 336 | |
| 337 | <pre class="code"> |
| 338 | Image *EdgeImage(const Image *image,const double radius, |
| 339 | ExceptionInfo *exception) |
| 340 | </pre> |
| 341 | |
| 342 | <p>A description of each parameter follows:</p></ol> |
| 343 | |
| 344 | <h5>image</h5> |
| 345 | <ol><p>the image.</p></ol> |
| 346 | |
| 347 | <h5>radius</h5> |
| 348 | <ol><p>the radius of the pixel neighborhood.</p></ol> |
| 349 | |
| 350 | <h5>exception</h5> |
| 351 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 352 | |
| 353 | </div> |
| 354 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 355 | _8c.html" target="source" name="EmbossImage">EmbossImage</a></h2> |
| 356 | <div class="doc-section"> |
| 357 | |
| 358 | <p>EmbossImage() returns a grayscale image with a three-dimensional effect. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and Emboss() selects a suitable radius for you.</p></ol> |
| 359 | |
| 360 | <p>The format of the EmbossImage method is:</p> |
| 361 | |
| 362 | <pre class="code"> |
| 363 | Image *EmbossImage(const Image *image,const double radius, |
| 364 | const double sigma,ExceptionInfo *exception) |
| 365 | </pre> |
| 366 | |
| 367 | <p>A description of each parameter follows:</p></ol> |
| 368 | |
| 369 | <h5>image</h5> |
| 370 | <ol><p>the image.</p></ol> |
| 371 | |
| 372 | <h5>radius</h5> |
| 373 | <ol><p>the radius of the pixel neighborhood.</p></ol> |
| 374 | |
| 375 | <h5>sigma</h5> |
| 376 | <ol><p>the standard deviation of the Gaussian, in pixels.</p></ol> |
| 377 | |
| 378 | <h5>exception</h5> |
| 379 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 380 | |
| 381 | </div> |
| 382 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
cristy | 16ff93c | 2010-01-13 23:18:07 +0000 | [diff] [blame] | 383 | _8c.html" target="source" name="FilterImage">FilterImage</a></h2> |
| 384 | <div class="doc-section"> |
| 385 | |
| 386 | <p>FilterImage() applies a custom convolution kernel to the image.</p></ol> |
| 387 | |
| 388 | <p>The format of the FilterImage method is:</p> |
| 389 | |
| 390 | <pre class="code"> |
cristy | 488844c | 2010-01-22 14:02:05 +0000 | [diff] [blame] | 391 | Image *FilterImage(const Image *image,const KernelInfo *kernel, |
cristy | 16ff93c | 2010-01-13 23:18:07 +0000 | [diff] [blame] | 392 | ExceptionInfo *exception) |
| 393 | Image *FilterImageChannel(const Image *image,const ChannelType channel, |
cristy | 488844c | 2010-01-22 14:02:05 +0000 | [diff] [blame] | 394 | const KernelInfo *kernel,ExceptionInfo *exception) |
cristy | 16ff93c | 2010-01-13 23:18:07 +0000 | [diff] [blame] | 395 | </pre> |
| 396 | |
| 397 | <p>A description of each parameter follows:</p></ol> |
| 398 | |
| 399 | <h5>image</h5> |
| 400 | <ol><p>the image.</p></ol> |
| 401 | |
| 402 | <h5>channel</h5> |
| 403 | <ol><p>the channel type.</p></ol> |
| 404 | |
| 405 | <h5>kernel</h5> |
| 406 | <ol><p>the filtering kernel.</p></ol> |
| 407 | |
| 408 | <h5>exception</h5> |
| 409 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 410 | |
| 411 | </div> |
| 412 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 413 | _8c.html" target="source" name="GaussianBlurImage">GaussianBlurImage</a></h2> |
| 414 | <div class="doc-section"> |
| 415 | |
| 416 | <p>GaussianBlurImage() blurs an image. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, the radius should be larger than sigma. Use a radius of 0 and GaussianBlurImage() selects a suitable radius for you</p></ol> |
| 417 | |
| 418 | <p>The format of the GaussianBlurImage method is:</p> |
| 419 | |
| 420 | <pre class="code"> |
| 421 | Image *GaussianBlurImage(const Image *image,onst double radius, |
| 422 | const double sigma,ExceptionInfo *exception) |
| 423 | Image *GaussianBlurImageChannel(const Image *image, |
| 424 | const ChannelType channel,const double radius,const double sigma, |
| 425 | ExceptionInfo *exception) |
| 426 | </pre> |
| 427 | |
| 428 | <p>A description of each parameter follows:</p></ol> |
| 429 | |
| 430 | <h5>image</h5> |
| 431 | <ol><p>the image.</p></ol> |
| 432 | |
| 433 | <h5>channel</h5> |
| 434 | <ol><p>the channel type.</p></ol> |
| 435 | |
| 436 | <h5>radius</h5> |
| 437 | <ol><p>the radius of the Gaussian, in pixels, not counting the center pixel.</p></ol> |
| 438 | |
| 439 | <h5>sigma</h5> |
| 440 | <ol><p>the standard deviation of the Gaussian, in pixels.</p></ol> |
| 441 | |
| 442 | <h5>exception</h5> |
| 443 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 444 | |
| 445 | </div> |
| 446 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 447 | _8c.html" target="source" name="MedianFilterImage">MedianFilterImage</a></h2> |
| 448 | <div class="doc-section"> |
| 449 | |
| 450 | <p>MedianFilterImage() applies a digital filter that improves the quality of a noisy image. Each pixel is replaced by the median in a set of neighboring pixels as defined by radius.</p></ol> |
| 451 | |
| 452 | <p>The algorithm was contributed by Mike Edmonds and implements an insertion sort for selecting median color-channel values. For more on this algorithm see "Skip Lists: A probabilistic Alternative to Balanced Trees" by William Pugh in the June 1990 of Communications of the ACM.</p></ol> |
| 453 | |
| 454 | <p>The format of the MedianFilterImage method is:</p> |
| 455 | |
| 456 | <pre class="code"> |
| 457 | Image *MedianFilterImage(const Image *image,const double radius, |
| 458 | ExceptionInfo *exception) |
| 459 | </pre> |
| 460 | |
| 461 | <p>A description of each parameter follows:</p></ol> |
| 462 | |
| 463 | <h5>image</h5> |
| 464 | <ol><p>the image.</p></ol> |
| 465 | |
| 466 | <h5>radius</h5> |
| 467 | <ol><p>the radius of the pixel neighborhood.</p></ol> |
| 468 | |
| 469 | <h5>exception</h5> |
| 470 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 471 | |
| 472 | </div> |
| 473 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 474 | _8c.html" target="source" name="MotionBlurImage">MotionBlurImage</a></h2> |
| 475 | <div class="doc-section"> |
| 476 | |
| 477 | <p>MotionBlurImage() simulates motion blur. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and MotionBlurImage() selects a suitable radius for you. Angle gives the angle of the blurring motion.</p></ol> |
| 478 | |
| 479 | <p>Andrew Protano contributed this effect.</p></ol> |
| 480 | |
| 481 | <p>The format of the MotionBlurImage method is:</p> |
| 482 | |
| 483 | <pre class="code"> |
| 484 | Image *MotionBlurImage(const Image *image,const double radius, |
| 485 | const double sigma,const double angle,ExceptionInfo *exception) |
| 486 | Image *MotionBlurImageChannel(const Image *image,const ChannelType channel, |
| 487 | const double radius,const double sigma,const double angle, |
| 488 | ExceptionInfo *exception) |
| 489 | </pre> |
| 490 | |
| 491 | <p>A description of each parameter follows:</p></ol> |
| 492 | |
| 493 | <h5>image</h5> |
| 494 | <ol><p>the image.</p></ol> |
| 495 | |
| 496 | <h5>channel</h5> |
| 497 | <ol><p>the channel type.</p></ol> |
| 498 | |
| 499 | <h5>radius</h5> |
| 500 | <ol><p>the radius of the Gaussian, in pixels, not counting the center</p> |
| 501 | <h5>radius</h5> |
| 502 | <ol><p>the radius of the Gaussian, in pixels, not counting the center pixel.</p></ol> |
| 503 | |
| 504 | <h5>sigma</h5> |
| 505 | <ol><p>the standard deviation of the Gaussian, in pixels.</p></ol> |
| 506 | |
| 507 | <h5>angle</h5> |
cristy | eaedf06 | 2010-05-29 22:36:02 +0000 | [diff] [blame] | 508 | <ol><p>Apply the effect along this angle.</p></ol> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 509 | |
| 510 | <h5>exception</h5> |
| 511 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 512 | |
| 513 | </div> |
| 514 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 515 | _8c.html" target="source" name="PreviewImage">PreviewImage</a></h2> |
| 516 | <div class="doc-section"> |
| 517 | |
| 518 | <p>PreviewImage() tiles 9 thumbnails of the specified image with an image processing operation applied with varying parameters. This may be helpful pin-pointing an appropriate parameter for a particular image processing operation.</p></ol> |
| 519 | |
| 520 | <p>The format of the PreviewImages method is:</p> |
| 521 | |
| 522 | <pre class="code"> |
| 523 | Image *PreviewImages(const Image *image,const PreviewType preview, |
| 524 | ExceptionInfo *exception) |
| 525 | </pre> |
| 526 | |
| 527 | <p>A description of each parameter follows:</p></ol> |
| 528 | |
| 529 | <h5>image</h5> |
| 530 | <ol><p>the image.</p></ol> |
| 531 | |
| 532 | <h5>preview</h5> |
| 533 | <ol><p>the image processing operation.</p></ol> |
| 534 | |
| 535 | <h5>exception</h5> |
| 536 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 537 | |
| 538 | </div> |
| 539 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 540 | _8c.html" target="source" name="RadialBlurImage">RadialBlurImage</a></h2> |
| 541 | <div class="doc-section"> |
| 542 | |
| 543 | <p>RadialBlurImage() applies a radial blur to the image.</p></ol> |
| 544 | |
| 545 | <p>Andrew Protano contributed this effect.</p></ol> |
| 546 | |
| 547 | <p>The format of the RadialBlurImage method is:</p> |
| 548 | |
| 549 | <pre class="code"> |
| 550 | Image *RadialBlurImage(const Image *image,const double angle, |
| 551 | ExceptionInfo *exception) |
| 552 | Image *RadialBlurImageChannel(const Image *image,const ChannelType channel, |
| 553 | const double angle,ExceptionInfo *exception) |
| 554 | </pre> |
| 555 | |
| 556 | <p>A description of each parameter follows:</p></ol> |
| 557 | |
| 558 | <h5>image</h5> |
| 559 | <ol><p>the image.</p></ol> |
| 560 | |
| 561 | <h5>channel</h5> |
| 562 | <ol><p>the channel type.</p></ol> |
| 563 | |
| 564 | <h5>angle</h5> |
| 565 | <ol><p>the angle of the radial blur.</p></ol> |
| 566 | |
| 567 | <h5>exception</h5> |
| 568 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 569 | |
| 570 | </div> |
| 571 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 572 | _8c.html" target="source" name="ReduceNoiseImage">ReduceNoiseImage</a></h2> |
| 573 | <div class="doc-section"> |
| 574 | |
| 575 | <p>ReduceNoiseImage() smooths the contours of an image while still preserving edge information. The algorithm works by replacing each pixel with its neighbor closest in value. A neighbor is defined by radius. Use a radius of 0 and ReduceNoise() selects a suitable radius for you.</p></ol> |
| 576 | |
| 577 | <p>The format of the ReduceNoiseImage method is:</p> |
| 578 | |
| 579 | <pre class="code"> |
| 580 | Image *ReduceNoiseImage(const Image *image,const double radius, |
| 581 | ExceptionInfo *exception) |
| 582 | </pre> |
| 583 | |
| 584 | <p>A description of each parameter follows:</p></ol> |
| 585 | |
| 586 | <h5>image</h5> |
| 587 | <ol><p>the image.</p></ol> |
| 588 | |
| 589 | <h5>radius</h5> |
| 590 | <ol><p>the radius of the pixel neighborhood.</p></ol> |
| 591 | |
| 592 | <h5>exception</h5> |
| 593 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 594 | |
| 595 | </div> |
| 596 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 597 | _8c.html" target="source" name="SelectiveBlurImage">SelectiveBlurImage</a></h2> |
| 598 | <div class="doc-section"> |
| 599 | |
| 600 | <p>SelectiveBlurImage() selectively blur pixels within a contrast threshold. It is similar to the unsharpen mask that sharpens everything with contrast above a certain threshold.</p></ol> |
| 601 | |
| 602 | <p>The format of the SelectiveBlurImage method is:</p> |
| 603 | |
| 604 | <pre class="code"> |
| 605 | Image *SelectiveBlurImage(const Image *image,const double radius, |
| 606 | const double sigma,const double threshold,ExceptionInfo *exception) |
| 607 | Image *SelectiveBlurImageChannel(const Image *image, |
| 608 | const ChannelType channel,const double radius,const double sigma, |
| 609 | const double threshold,ExceptionInfo *exception) |
| 610 | </pre> |
| 611 | |
| 612 | <p>A description of each parameter follows:</p></ol> |
| 613 | |
| 614 | <h5>image</h5> |
| 615 | <ol><p>the image.</p></ol> |
| 616 | |
| 617 | <h5>channel</h5> |
| 618 | <ol><p>the channel type.</p></ol> |
| 619 | |
| 620 | <h5>radius</h5> |
| 621 | <ol><p>the radius of the Gaussian, in pixels, not counting the center pixel.</p></ol> |
| 622 | |
| 623 | <h5>sigma</h5> |
| 624 | <ol><p>the standard deviation of the Gaussian, in pixels.</p></ol> |
| 625 | |
| 626 | <h5>threshold</h5> |
| 627 | <ol><p>only pixels within this contrast threshold are included in the blur operation.</p></ol> |
| 628 | |
| 629 | <h5>exception</h5> |
| 630 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 631 | |
| 632 | </div> |
| 633 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 634 | _8c.html" target="source" name="ShadeImage">ShadeImage</a></h2> |
| 635 | <div class="doc-section"> |
| 636 | |
| 637 | <p>ShadeImage() shines a distant light on an image to create a three-dimensional effect. You control the positioning of the light with azimuth and elevation; azimuth is measured in degrees off the x axis and elevation is measured in pixels above the Z axis.</p></ol> |
| 638 | |
| 639 | <p>The format of the ShadeImage method is:</p> |
| 640 | |
| 641 | <pre class="code"> |
| 642 | Image *ShadeImage(const Image *image,const MagickBooleanType gray, |
| 643 | const double azimuth,const double elevation,ExceptionInfo *exception) |
| 644 | </pre> |
| 645 | |
| 646 | <p>A description of each parameter follows:</p></ol> |
| 647 | |
| 648 | <h5>image</h5> |
| 649 | <ol><p>the image.</p></ol> |
| 650 | |
| 651 | <h5>gray</h5> |
| 652 | <ol><p>A value other than zero shades the intensity of each pixel.</p></ol> |
| 653 | |
| 654 | <h5>azimuth, elevation</h5> |
| 655 | <ol><p>Define the light source direction.</p></ol> |
| 656 | |
| 657 | <h5>exception</h5> |
| 658 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 659 | |
| 660 | </div> |
| 661 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 662 | _8c.html" target="source" name="SharpenImage">SharpenImage</a></h2> |
| 663 | <div class="doc-section"> |
| 664 | |
| 665 | <p>SharpenImage() sharpens the image. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and SharpenImage() selects a suitable radius for you.</p></ol> |
| 666 | |
| 667 | <p>Using a separable kernel would be faster, but the negative weights cancel out on the corners of the kernel producing often undesirable ringing in the filtered result; this can be avoided by using a 2D gaussian shaped image sharpening kernel instead.</p></ol> |
| 668 | |
| 669 | <p>The format of the SharpenImage method is:</p> |
| 670 | |
| 671 | <pre class="code"> |
| 672 | Image *SharpenImage(const Image *image,const double radius, |
| 673 | const double sigma,ExceptionInfo *exception) |
| 674 | Image *SharpenImageChannel(const Image *image,const ChannelType channel, |
| 675 | const double radius,const double sigma,ExceptionInfo *exception) |
| 676 | </pre> |
| 677 | |
| 678 | <p>A description of each parameter follows:</p></ol> |
| 679 | |
| 680 | <h5>image</h5> |
| 681 | <ol><p>the image.</p></ol> |
| 682 | |
| 683 | <h5>channel</h5> |
| 684 | <ol><p>the channel type.</p></ol> |
| 685 | |
| 686 | <h5>radius</h5> |
| 687 | <ol><p>the radius of the Gaussian, in pixels, not counting the center pixel.</p></ol> |
| 688 | |
| 689 | <h5>sigma</h5> |
| 690 | <ol><p>the standard deviation of the Laplacian, in pixels.</p></ol> |
| 691 | |
| 692 | <h5>exception</h5> |
| 693 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 694 | |
| 695 | </div> |
| 696 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 697 | _8c.html" target="source" name="SpreadImage">SpreadImage</a></h2> |
| 698 | <div class="doc-section"> |
| 699 | |
| 700 | <p>SpreadImage() is a special effects method that randomly displaces each pixel in a block defined by the radius parameter.</p></ol> |
| 701 | |
| 702 | <p>The format of the SpreadImage method is:</p> |
| 703 | |
| 704 | <pre class="code"> |
| 705 | Image *SpreadImage(const Image *image,const double radius, |
| 706 | ExceptionInfo *exception) |
| 707 | </pre> |
| 708 | |
| 709 | <p>A description of each parameter follows:</p></ol> |
| 710 | |
| 711 | <h5>image</h5> |
| 712 | <ol><p>the image.</p></ol> |
| 713 | |
| 714 | <h5>radius</h5> |
| 715 | <ol><p>Choose a random pixel in a neighborhood of this extent.</p></ol> |
| 716 | |
| 717 | <h5>exception</h5> |
| 718 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 719 | |
| 720 | </div> |
| 721 | <h2><a href="http://www.imagemagick.org/api/MagickCore/effect |
| 722 | _8c.html" target="source" name="UnsharpMaskImage">UnsharpMaskImage</a></h2> |
| 723 | <div class="doc-section"> |
| 724 | |
| 725 | <p>UnsharpMaskImage() sharpens one or more image channels. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and UnsharpMaskImage() selects a suitable radius for you.</p></ol> |
| 726 | |
| 727 | <p>The format of the UnsharpMaskImage method is:</p> |
| 728 | |
| 729 | <pre class="code"> |
| 730 | Image *UnsharpMaskImage(const Image *image,const double radius, |
| 731 | const double sigma,const double amount,const double threshold, |
| 732 | ExceptionInfo *exception) |
| 733 | Image *UnsharpMaskImageChannel(const Image *image, |
| 734 | const ChannelType channel,const double radius,const double sigma, |
| 735 | const double amount,const double threshold,ExceptionInfo *exception) |
| 736 | </pre> |
| 737 | |
| 738 | <p>A description of each parameter follows:</p></ol> |
| 739 | |
| 740 | <h5>image</h5> |
| 741 | <ol><p>the image.</p></ol> |
| 742 | |
| 743 | <h5>channel</h5> |
| 744 | <ol><p>the channel type.</p></ol> |
| 745 | |
| 746 | <h5>radius</h5> |
| 747 | <ol><p>the radius of the Gaussian, in pixels, not counting the center pixel.</p></ol> |
| 748 | |
| 749 | <h5>sigma</h5> |
| 750 | <ol><p>the standard deviation of the Gaussian, in pixels.</p></ol> |
| 751 | |
| 752 | <h5>amount</h5> |
| 753 | <ol><p>the percentage of the difference between the original and the blur image that is added back into the original.</p></ol> |
| 754 | |
| 755 | <h5>threshold</h5> |
| 756 | <ol><p>the threshold in pixels needed to apply the diffence amount.</p></ol> |
| 757 | |
| 758 | <h5>exception</h5> |
| 759 | <ol><p>return any errors or warnings in this structure.</p></ol> |
| 760 | |
| 761 | </div> |
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 762 |
|
| 763 | </div>
|
| 764 |
|
| 765 | <div id="linkbar">
|
cristy | ce69bb0 | 2010-07-27 19:49:46 +0000 | [diff] [blame] | 766 | <span id="linkbar-west"> </span>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 767 | <span id="linkbar-center">
|
| 768 | <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
|
cristy | a890294 | 2010-07-30 00:49:52 +0000 | [diff] [blame] | 769 | <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 770 | </span>
|
| 771 | <span id="linkbar-east"> </span>
|
| 772 | </div>
|
| 773 | <div class="footer">
|
cristy | 4103d56 | 2010-12-10 01:38:54 +0000 | [diff] [blame] | 774 | <span id="footer-west">© 1999-2011 ImageMagick Studio LLC</span>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 775 | <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
|
| 776 | </div>
|
| 777 | <div style="clear: both; margin: 0; width: 100%; "></div>
|
cristy | a890294 | 2010-07-30 00:49:52 +0000 | [diff] [blame] | 778 | <script type="text/javascript">
|
| 779 | var _gaq = _gaq || [];
|
| 780 | _gaq.push(['_setAccount', 'UA-17690367-1']);
|
| 781 | _gaq.push(['_trackPageview']);
|
| 782 |
|
| 783 | (function() {
|
| 784 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
| 785 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
| 786 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
| 787 | })();
|
| 788 | </script>
|
cristy | 3eaa0ef | 2010-03-06 20:35:26 +0000 | [diff] [blame] | 789 | </body>
|
| 790 | </html>
|