blob: 510244b80cb26094fbc41e40ce273efd5425d497 [file] [log] [blame]
cristydcca3fa2010-12-29 21:50:07 +00001<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr">
cristy3eaa0ef2010-03-06 20:35:26 +00004<head>
cristy3c98a4f2010-08-13 20:09:41 +00005 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>
cristyffb69ed2010-12-25 00:06:48 +00007 <title>ImageMagick: MagickCore, C API for ImageMagick: Add an Effect</title>
cristy3ed852e2009-09-05 21:47:34 +00008 <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"/>
cristy3c98a4f2010-08-13 20:09:41 +000011 <meta name="Application-name" content="ImageMagick"/>
cristyaf8d6652011-02-04 21:57:45 +000012 <meta name="Description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition resize, rotate, shear, distort and transform images."/>
cristy3c98a4f2010-08-13 20:09:41 +000013 <meta name="Application-url" content="http://www.imagemagick.org"/>
cristy3ed852e2009-09-05 21:47:34 +000014 <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"/>
cristy3ed852e2009-09-05 21:47:34 +000016 <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"/>
cristy4103d562010-12-10 01:38:54 +000022 <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
cristy3ed852e2009-09-05 21:47:34 +000023 <meta name="Distribution" content="Global"/>
cristydcca3fa2010-12-29 21:50:07 +000024 <link rel="icon" href="../../images/wand.png"/>
cristy3c98a4f2010-08-13 20:09:41 +000025 <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"/>
cristy7a40ba82011-01-08 20:31:18 +000027 <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
cristy3c98a4f2010-08-13 20:09:41 +000028 <style type="text/css" media="all">
29 @import url("../../www/magick.css");
30 </style>
cristydcca3fa2010-12-29 21:50:07 +000031 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
cristy361f4662010-12-31 23:02:52 +000032 <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>
33 <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />
34 <script type="text/javascript">
35 $(document).ready(function() {
36 $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
37 'transitionIn' : 'elastic',
38 'transitionOut' : 'elastic',
39 'overlayShow' : false,
40 'opacity' : true
41 });
42 });
43 </script>
cristy3eaa0ef2010-03-06 20:35:26 +000044</head>
45
46<body id="www-imagemagick-org">
47<div class="titlebar">
48<a href="../../index.html">
49 <img src="../../images/script.png" alt="[ImageMagick]"
50 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
51<a href="http://www.networkredux.com">
52 <img src="../../images/networkredux.png" alt="[sponsor]"
cristy52923442011-01-15 22:54:31 +000053 style="margin-top: 42px; border: 0px; float: left;" /></a>
cristy3eaa0ef2010-03-06 20:35:26 +000054<a href="http://www.imagemagick.org/discourse-server/">
cristyaf8d6652011-02-04 21:57:45 +000055 <img src="../../images/logo.jpg"
56 alt="ImageMagick Logo"
cristy178edaf2011-01-23 03:42:39 +000057 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
cristy3eaa0ef2010-03-06 20:35:26 +000058<a href="../../index.html">
cristyaf8d6652011-02-04 21:57:45 +000059 <img src="../../images/sprite.jpg"
60 alt="ImageMagick Sprite"
cristy3eaa0ef2010-03-06 20:35:26 +000061 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
62</div>
63
cristyce69bb02010-07-27 19:49:46 +000064<div class="westbar">
cristy3eaa0ef2010-03-06 20:35:26 +000065
cristy3ed852e2009-09-05 21:47:34 +000066<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000067 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
cristy3ed852e2009-09-05 21:47:34 +000068</div>
cristy3eaa0ef2010-03-06 20:35:26 +000069<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +000070<div class="menu">
cristybb503372010-05-27 20:51:26 +000071 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
72</div>
73<div class="sub">
74 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
75</div>
76<div class="sub">
77 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
78</div>
79<div class="sub">
80 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
81</div>
82<div class="sep"></div>
83<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000084 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
cristy3ed852e2009-09-05 21:47:34 +000085</div>
86<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000087 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
cristy3ed852e2009-09-05 21:47:34 +000088</div>
89<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000090 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
cristy3ed852e2009-09-05 21:47:34 +000091</div>
92<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000093 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
cristy3ed852e2009-09-05 21:47:34 +000094</div>
95<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000096 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
cristy3ed852e2009-09-05 21:47:34 +000097</div>
98<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000099 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
cristy3ed852e2009-09-05 21:47:34 +0000100</div>
101<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000102 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
cristy3ed852e2009-09-05 21:47:34 +0000103</div>
104<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000105 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
cristy3ed852e2009-09-05 21:47:34 +0000106</div>
107<div class="sub">
cristydcca3fa2010-12-29 21:50:07 +0000108 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
cristy3ed852e2009-09-05 21:47:34 +0000109</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000110<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000111<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000112 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
cristy3ed852e2009-09-05 21:47:34 +0000113</div>
114<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000115 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
cristy3ed852e2009-09-05 21:47:34 +0000116</div>
117<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000118 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
cristy3ed852e2009-09-05 21:47:34 +0000119 </div>
120<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000121 <a title="Resources" href="../../www/resources.html">Resources</a>
cristy3ed852e2009-09-05 21:47:34 +0000122</div>
cristybb503372010-05-27 20:51:26 +0000123<div class="menu">
124 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
125</div>
cristy3ed852e2009-09-05 21:47:34 +0000126<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000127 <a title="Download" href="../../www/download.html">Download</a>
cristy3ed852e2009-09-05 21:47:34 +0000128</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000129<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000130<div class="menu">
cristy52923442011-01-15 22:54:31 +0000131 <a title="Search" href="../../www/search.html">Search</a>
cristy3ed852e2009-09-05 21:47:34 +0000132</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000133<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000134<div class="menu">
cristyffb69ed2010-12-25 00:06:48 +0000135 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
cristy3ed852e2009-09-05 21:47:34 +0000136</div>
137<div class="sub">
cristyffb69ed2010-12-25 00:06:48 +0000138 <a title="Site Map: Links" href="../../www/links.html">Links</a>
cristy3ed852e2009-09-05 21:47:34 +0000139</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000140<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000141<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000142 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
cristy3ed852e2009-09-05 21:47:34 +0000143
144<div class="sponsbox">
cristy178edaf2011-01-23 03:42:39 +0000145<div class="sponsor">
cristyaf8d6652011-02-04 21:57:45 +0000146 <a title="Sponsor: Best Web Hosting" href="http://webhostinggeeks.com">Best Web Hosting</a><!-- 201110010720 -->
147</div>
148<div class="sponsor">
149 <a title="Sponsor: Web Hosting Ratings" href="http://webhostingrating.com">Web Hosting Ratings</a><!-- 201110010720 -->
150</div>
151<div class="sponsor">
cristy178edaf2011-01-23 03:42:39 +0000152 <a title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201106010240 -->
153</div>
cristyec6b4752011-01-08 03:16:23 +0000154<div class="sponsor">
cristy52923442011-01-15 22:54:31 +0000155 <a title="Sponsor: Web Hosting" href="http://www.bodhost.com/hosting.shtml">Web Hosting</a><!-- 201104010090 -->
cristy73fd1cd2010-09-12 19:14:25 +0000156</div>
157<div class="sponsor">
cristyc5baf4f2010-08-31 15:05:33 +0000158 <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee-->
159</div>
160<div class="sponsor">
cristy851dbce2010-08-06 21:40:00 +0000161 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
162</div>
cristyec6b4752011-01-08 03:16:23 +0000163<div class="sponsor">
cristy178edaf2011-01-23 03:42:39 +0000164 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
165</div>
166<div class="sponsor">
cristyaf8d6652011-02-04 21:57:45 +0000167 <a title="Sponsor: Notebook Reparatur Berlin" href="http://www.notebook-reparaturen-berlin.de">Notebook Reparatur Berlin</a><!-- 2011050100025 gabi.schulze-->
cristyec6b4752011-01-08 03:16:23 +0000168</div>
cristy3ed852e2009-09-05 21:47:34 +0000169</div>
170</div>
cristyce69bb02010-07-27 19:49:46 +0000171</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000172
cristyce69bb02010-07-27 19:49:46 +0000173<div class="eastbar">
174 <script type="text/javascript">
175 <!--
176 google_ad_client = "pub-3129977114552745";
cristyce69bb02010-07-27 19:49:46 +0000177 google_ad_slot = "0574824969";
178 google_ad_width = 160;
179 google_ad_height = 600;
180 //-->
181 </script>
182 <script type="text/javascript"
183 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
184 </script>
cristy3eaa0ef2010-03-06 20:35:26 +0000185</div>
186
187<div class="main">
188
cristy307ba182010-12-25 01:00:34 +0000189<h1>Module effect
190 Methods</h1>
cristy16ff93c2010-01-13 23:18:07 +0000191<p class="navigation-index">[<a href="#AdaptiveBlurImage">AdaptiveBlurImage</a> &bull; <a href="#AdaptiveSharpenImage">AdaptiveSharpenImage</a> &bull; <a href="#BlurImage">BlurImage</a> &bull; <a href="#ConvolveImage">ConvolveImage</a> &bull; <a href="#DespeckleImage">DespeckleImage</a> &bull; <a href="#EdgeImage">EdgeImage</a> &bull; <a href="#EmbossImage">EmbossImage</a> &bull; <a href="#FilterImage">FilterImage</a> &bull; <a href="#GaussianBlurImage">GaussianBlurImage</a> &bull; <a href="#MedianFilterImage">MedianFilterImage</a> &bull; <a href="#MotionBlurImage">MotionBlurImage</a> &bull; <a href="#PreviewImage">PreviewImage</a> &bull; <a href="#RadialBlurImage">RadialBlurImage</a> &bull; <a href="#ReduceNoiseImage">ReduceNoiseImage</a> &bull; <a href="#SelectiveBlurImage">SelectiveBlurImage</a> &bull; <a href="#ShadeImage">ShadeImage</a> &bull; <a href="#SharpenImage">SharpenImage</a> &bull; <a href="#SpreadImage">SpreadImage</a> &bull; <a href="#UnsharpMaskImage">UnsharpMaskImage</a>]</p>
cristy3ed852e2009-09-05 21:47:34 +0000192
cristy7a40ba82011-01-08 20:31:18 +0000193<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
194_8c.html" id="AdaptiveBlurImage">AdaptiveBlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000195<div class="doc-section">
196
cristy7a40ba82011-01-08 20:31:18 +0000197<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>
cristy3ed852e2009-09-05 21:47:34 +0000198
199<p>The format of the AdaptiveBlurImage method is:</p>
200
201<pre class="code">
202 Image *AdaptiveBlurImage(const Image *image,const double radius,
203 const double sigma,ExceptionInfo *exception)
204 Image *AdaptiveBlurImageChannel(const Image *image,
205 const ChannelType channel,double radius,const double sigma,
206 ExceptionInfo *exception)
207</pre>
208
cristy7a40ba82011-01-08 20:31:18 +0000209<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000210
211<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000212<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000213
214<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000215<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000216
217<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000218<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000219
220<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000221<p>the standard deviation of the Laplacian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000222
223<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000224<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000225
226 </div>
cristy7a40ba82011-01-08 20:31:18 +0000227<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
228_8c.html" id="AdaptiveSharpenImage">AdaptiveSharpenImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000229<div class="doc-section">
230
cristy7a40ba82011-01-08 20:31:18 +0000231<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>
cristy3ed852e2009-09-05 21:47:34 +0000232
233<p>The format of the AdaptiveSharpenImage method is:</p>
234
235<pre class="code">
236 Image *AdaptiveSharpenImage(const Image *image,const double radius,
237 const double sigma,ExceptionInfo *exception)
238 Image *AdaptiveSharpenImageChannel(const Image *image,
239 const ChannelType channel,double radius,const double sigma,
240 ExceptionInfo *exception)
241</pre>
242
cristy7a40ba82011-01-08 20:31:18 +0000243<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000244
245<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000246<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000247
248<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000249<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000250
251<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000252<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000253
254<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000255<p>the standard deviation of the Laplacian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000256
257<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000258<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000259
260 </div>
cristy7a40ba82011-01-08 20:31:18 +0000261<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
262_8c.html" id="BlurImage">BlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000263<div class="doc-section">
264
cristy7a40ba82011-01-08 20:31:18 +0000265<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>
cristy3ed852e2009-09-05 21:47:34 +0000266
cristy7a40ba82011-01-08 20:31:18 +0000267<p>BlurImage() differs from GaussianBlurImage() in that it uses a separable kernel which is faster but mathematically equivalent to the non-separable kernel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000268
269<p>The format of the BlurImage method is:</p>
270
271<pre class="code">
272 Image *BlurImage(const Image *image,const double radius,
273 const double sigma,ExceptionInfo *exception)
274 Image *BlurImageChannel(const Image *image,const ChannelType channel,
275 const double radius,const double sigma,ExceptionInfo *exception)
276</pre>
277
cristy7a40ba82011-01-08 20:31:18 +0000278<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000279
280<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000281<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000282
283<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000284<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000285
286<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000287<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000288
289<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000290<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000291
292<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000293<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000294
295 </div>
cristy7a40ba82011-01-08 20:31:18 +0000296<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
297_8c.html" id="ConvolveImage">ConvolveImage</a></h2>
cristy6b636652009-12-05 17:16:11 +0000298<div class="doc-section">
299
cristy7a40ba82011-01-08 20:31:18 +0000300<p>ConvolveImage() applies a custom convolution kernel to the image.</p>
cristy6b636652009-12-05 17:16:11 +0000301
302<p>The format of the ConvolveImage method is:</p>
303
304<pre class="code">
cristybb503372010-05-27 20:51:26 +0000305 Image *ConvolveImage(const Image *image,const size_t order,
cristy6b636652009-12-05 17:16:11 +0000306 const double *kernel,ExceptionInfo *exception)
307 Image *ConvolveImageChannel(const Image *image,const ChannelType channel,
cristybc9539a2010-08-16 18:06:20 +0000308 const size_t order,const double *kernel,ExceptionInfo *exception)
cristy6b636652009-12-05 17:16:11 +0000309</pre>
310
cristy7a40ba82011-01-08 20:31:18 +0000311<p>A description of each parameter follows:</p>
cristy6b636652009-12-05 17:16:11 +0000312
313<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000314<p>the image.</p>
cristy6b636652009-12-05 17:16:11 +0000315
316<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000317<p>the channel type.</p>
cristy6b636652009-12-05 17:16:11 +0000318
319<h5>order</h5>
cristy7a40ba82011-01-08 20:31:18 +0000320<p>the number of columns and rows in the filter kernel.</p>
cristy6b636652009-12-05 17:16:11 +0000321
322<h5>kernel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000323<p>An array of double representing the convolution kernel.</p>
cristy6b636652009-12-05 17:16:11 +0000324
325<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000326<p>return any errors or warnings in this structure.</p>
cristy6b636652009-12-05 17:16:11 +0000327
328 </div>
cristy7a40ba82011-01-08 20:31:18 +0000329<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
330_8c.html" id="DespeckleImage">DespeckleImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000331<div class="doc-section">
332
cristy7a40ba82011-01-08 20:31:18 +0000333<p>DespeckleImage() reduces the speckle noise in an image while perserving the edges of the original image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000334
335<p>The format of the DespeckleImage method is:</p>
336
337<pre class="code">
338 Image *DespeckleImage(const Image *image,ExceptionInfo *exception)
339</pre>
340
cristy7a40ba82011-01-08 20:31:18 +0000341<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000342
343<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000344<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000345
346<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000347<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000348
349 </div>
cristy7a40ba82011-01-08 20:31:18 +0000350<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
351_8c.html" id="EdgeImage">EdgeImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000352<div class="doc-section">
353
cristy7a40ba82011-01-08 20:31:18 +0000354<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>
cristy3ed852e2009-09-05 21:47:34 +0000355
356<p>The format of the EdgeImage method is:</p>
357
358<pre class="code">
359 Image *EdgeImage(const Image *image,const double radius,
360 ExceptionInfo *exception)
361</pre>
362
cristy7a40ba82011-01-08 20:31:18 +0000363<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000364
365<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000366<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000367
368<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000369<p>the radius of the pixel neighborhood.</p>
cristy3ed852e2009-09-05 21:47:34 +0000370
371<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000372<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000373
374 </div>
cristy7a40ba82011-01-08 20:31:18 +0000375<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
376_8c.html" id="EmbossImage">EmbossImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000377<div class="doc-section">
378
cristy7a40ba82011-01-08 20:31:18 +0000379<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>
cristy3ed852e2009-09-05 21:47:34 +0000380
381<p>The format of the EmbossImage method is:</p>
382
383<pre class="code">
384 Image *EmbossImage(const Image *image,const double radius,
385 const double sigma,ExceptionInfo *exception)
386</pre>
387
cristy7a40ba82011-01-08 20:31:18 +0000388<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000389
390<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000391<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000392
393<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000394<p>the radius of the pixel neighborhood.</p>
cristy3ed852e2009-09-05 21:47:34 +0000395
396<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000397<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000398
399<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000400<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000401
402 </div>
cristy7a40ba82011-01-08 20:31:18 +0000403<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
404_8c.html" id="FilterImage">FilterImage</a></h2>
cristy16ff93c2010-01-13 23:18:07 +0000405<div class="doc-section">
406
cristy7a40ba82011-01-08 20:31:18 +0000407<p>FilterImage() applies a custom convolution kernel to the image.</p>
cristy16ff93c2010-01-13 23:18:07 +0000408
409<p>The format of the FilterImage method is:</p>
410
411<pre class="code">
cristy488844c2010-01-22 14:02:05 +0000412 Image *FilterImage(const Image *image,const KernelInfo *kernel,
cristy16ff93c2010-01-13 23:18:07 +0000413 ExceptionInfo *exception)
414 Image *FilterImageChannel(const Image *image,const ChannelType channel,
cristy488844c2010-01-22 14:02:05 +0000415 const KernelInfo *kernel,ExceptionInfo *exception)
cristy16ff93c2010-01-13 23:18:07 +0000416</pre>
417
cristy7a40ba82011-01-08 20:31:18 +0000418<p>A description of each parameter follows:</p>
cristy16ff93c2010-01-13 23:18:07 +0000419
420<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000421<p>the image.</p>
cristy16ff93c2010-01-13 23:18:07 +0000422
423<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000424<p>the channel type.</p>
cristy16ff93c2010-01-13 23:18:07 +0000425
426<h5>kernel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000427<p>the filtering kernel.</p>
cristy16ff93c2010-01-13 23:18:07 +0000428
429<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000430<p>return any errors or warnings in this structure.</p>
cristy16ff93c2010-01-13 23:18:07 +0000431
432 </div>
cristy7a40ba82011-01-08 20:31:18 +0000433<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
434_8c.html" id="GaussianBlurImage">GaussianBlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000435<div class="doc-section">
436
cristy7a40ba82011-01-08 20:31:18 +0000437<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>
cristy3ed852e2009-09-05 21:47:34 +0000438
439<p>The format of the GaussianBlurImage method is:</p>
440
441<pre class="code">
442 Image *GaussianBlurImage(const Image *image,onst double radius,
443 const double sigma,ExceptionInfo *exception)
444 Image *GaussianBlurImageChannel(const Image *image,
445 const ChannelType channel,const double radius,const double sigma,
446 ExceptionInfo *exception)
447</pre>
448
cristy7a40ba82011-01-08 20:31:18 +0000449<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000450
451<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000452<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000453
454<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000455<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000456
457<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000458<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000459
460<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000461<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000462
463<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000464<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000465
466 </div>
cristy7a40ba82011-01-08 20:31:18 +0000467<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
468_8c.html" id="MedianFilterImage">MedianFilterImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000469<div class="doc-section">
470
cristy7a40ba82011-01-08 20:31:18 +0000471<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>
cristy3ed852e2009-09-05 21:47:34 +0000472
cristy7a40ba82011-01-08 20:31:18 +0000473<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>
cristy3ed852e2009-09-05 21:47:34 +0000474
475<p>The format of the MedianFilterImage method is:</p>
476
477<pre class="code">
478 Image *MedianFilterImage(const Image *image,const double radius,
479 ExceptionInfo *exception)
480</pre>
481
cristy7a40ba82011-01-08 20:31:18 +0000482<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000483
484<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000485<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000486
487<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000488<p>the radius of the pixel neighborhood.</p>
cristy3ed852e2009-09-05 21:47:34 +0000489
490<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000491<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000492
493 </div>
cristy7a40ba82011-01-08 20:31:18 +0000494<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
495_8c.html" id="MotionBlurImage">MotionBlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000496<div class="doc-section">
497
cristy7a40ba82011-01-08 20:31:18 +0000498<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>
cristy3ed852e2009-09-05 21:47:34 +0000499
cristy7a40ba82011-01-08 20:31:18 +0000500<p>Andrew Protano contributed this effect.</p>
cristy3ed852e2009-09-05 21:47:34 +0000501
502<p>The format of the MotionBlurImage method is:</p>
503
504<pre class="code">
505 Image *MotionBlurImage(const Image *image,const double radius,
506 const double sigma,const double angle,ExceptionInfo *exception)
507 Image *MotionBlurImageChannel(const Image *image,const ChannelType channel,
508 const double radius,const double sigma,const double angle,
509 ExceptionInfo *exception)
510</pre>
511
cristy7a40ba82011-01-08 20:31:18 +0000512<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000513
514<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000515<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000516
517<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000518<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000519
520<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000521<p>the radius of the Gaussian, in pixels, not counting the center</p>
cristy3ed852e2009-09-05 21:47:34 +0000522<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000523<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000524
525<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000526<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000527
528<h5>angle</h5>
cristy7a40ba82011-01-08 20:31:18 +0000529<p>Apply the effect along this angle.</p>
cristy3ed852e2009-09-05 21:47:34 +0000530
531<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000532<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000533
534 </div>
cristy7a40ba82011-01-08 20:31:18 +0000535<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
536_8c.html" id="PreviewImage">PreviewImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000537<div class="doc-section">
538
cristy7a40ba82011-01-08 20:31:18 +0000539<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>
cristy3ed852e2009-09-05 21:47:34 +0000540
541<p>The format of the PreviewImages method is:</p>
542
543<pre class="code">
544 Image *PreviewImages(const Image *image,const PreviewType preview,
545 ExceptionInfo *exception)
546</pre>
547
cristy7a40ba82011-01-08 20:31:18 +0000548<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000549
550<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000551<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000552
553<h5>preview</h5>
cristy7a40ba82011-01-08 20:31:18 +0000554<p>the image processing operation.</p>
cristy3ed852e2009-09-05 21:47:34 +0000555
556<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000557<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000558
559 </div>
cristy7a40ba82011-01-08 20:31:18 +0000560<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
561_8c.html" id="RadialBlurImage">RadialBlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000562<div class="doc-section">
563
cristy7a40ba82011-01-08 20:31:18 +0000564<p>RadialBlurImage() applies a radial blur to the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000565
cristy7a40ba82011-01-08 20:31:18 +0000566<p>Andrew Protano contributed this effect.</p>
cristy3ed852e2009-09-05 21:47:34 +0000567
568<p>The format of the RadialBlurImage method is:</p>
569
570<pre class="code">
571 Image *RadialBlurImage(const Image *image,const double angle,
572 ExceptionInfo *exception)
573 Image *RadialBlurImageChannel(const Image *image,const ChannelType channel,
574 const double angle,ExceptionInfo *exception)
575</pre>
576
cristy7a40ba82011-01-08 20:31:18 +0000577<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000578
579<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000580<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000581
582<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000583<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000584
585<h5>angle</h5>
cristy7a40ba82011-01-08 20:31:18 +0000586<p>the angle of the radial blur.</p>
cristy3ed852e2009-09-05 21:47:34 +0000587
588<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000589<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000590
591 </div>
cristy7a40ba82011-01-08 20:31:18 +0000592<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
593_8c.html" id="ReduceNoiseImage">ReduceNoiseImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000594<div class="doc-section">
595
cristy7a40ba82011-01-08 20:31:18 +0000596<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>
cristy3ed852e2009-09-05 21:47:34 +0000597
598<p>The format of the ReduceNoiseImage method is:</p>
599
600<pre class="code">
601 Image *ReduceNoiseImage(const Image *image,const double radius,
602 ExceptionInfo *exception)
603</pre>
604
cristy7a40ba82011-01-08 20:31:18 +0000605<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000606
607<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000608<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000609
610<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000611<p>the radius of the pixel neighborhood.</p>
cristy3ed852e2009-09-05 21:47:34 +0000612
613<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000614<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000615
616 </div>
cristy7a40ba82011-01-08 20:31:18 +0000617<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
618_8c.html" id="SelectiveBlurImage">SelectiveBlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000619<div class="doc-section">
620
cristy7a40ba82011-01-08 20:31:18 +0000621<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>
cristy3ed852e2009-09-05 21:47:34 +0000622
623<p>The format of the SelectiveBlurImage method is:</p>
624
625<pre class="code">
626 Image *SelectiveBlurImage(const Image *image,const double radius,
627 const double sigma,const double threshold,ExceptionInfo *exception)
628 Image *SelectiveBlurImageChannel(const Image *image,
629 const ChannelType channel,const double radius,const double sigma,
630 const double threshold,ExceptionInfo *exception)
631</pre>
632
cristy7a40ba82011-01-08 20:31:18 +0000633<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000634
635<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000636<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000637
638<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000639<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000640
641<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000642<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000643
644<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000645<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000646
647<h5>threshold</h5>
cristy7a40ba82011-01-08 20:31:18 +0000648<p>only pixels within this contrast threshold are included in the blur operation.</p>
cristy3ed852e2009-09-05 21:47:34 +0000649
650<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000651<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000652
653 </div>
cristy7a40ba82011-01-08 20:31:18 +0000654<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
655_8c.html" id="ShadeImage">ShadeImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000656<div class="doc-section">
657
cristy7a40ba82011-01-08 20:31:18 +0000658<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>
cristy3ed852e2009-09-05 21:47:34 +0000659
660<p>The format of the ShadeImage method is:</p>
661
662<pre class="code">
663 Image *ShadeImage(const Image *image,const MagickBooleanType gray,
664 const double azimuth,const double elevation,ExceptionInfo *exception)
665</pre>
666
cristy7a40ba82011-01-08 20:31:18 +0000667<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000668
669<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000670<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000671
672<h5>gray</h5>
cristy7a40ba82011-01-08 20:31:18 +0000673<p>A value other than zero shades the intensity of each pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000674
675<h5>azimuth, elevation</h5>
cristy7a40ba82011-01-08 20:31:18 +0000676<p>Define the light source direction.</p>
cristy3ed852e2009-09-05 21:47:34 +0000677
678<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000679<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000680
681 </div>
cristy7a40ba82011-01-08 20:31:18 +0000682<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
683_8c.html" id="SharpenImage">SharpenImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000684<div class="doc-section">
685
cristy7a40ba82011-01-08 20:31:18 +0000686<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>
cristy3ed852e2009-09-05 21:47:34 +0000687
cristy7a40ba82011-01-08 20:31:18 +0000688<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>
cristy3ed852e2009-09-05 21:47:34 +0000689
690<p>The format of the SharpenImage method is:</p>
691
692<pre class="code">
693 Image *SharpenImage(const Image *image,const double radius,
694 const double sigma,ExceptionInfo *exception)
695 Image *SharpenImageChannel(const Image *image,const ChannelType channel,
696 const double radius,const double sigma,ExceptionInfo *exception)
697</pre>
698
cristy7a40ba82011-01-08 20:31:18 +0000699<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000700
701<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000702<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000703
704<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000705<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000706
707<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000708<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000709
710<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000711<p>the standard deviation of the Laplacian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000712
713<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000714<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000715
716 </div>
cristy7a40ba82011-01-08 20:31:18 +0000717<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
718_8c.html" id="SpreadImage">SpreadImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000719<div class="doc-section">
720
cristy7a40ba82011-01-08 20:31:18 +0000721<p>SpreadImage() is a special effects method that randomly displaces each pixel in a block defined by the radius parameter.</p>
cristy3ed852e2009-09-05 21:47:34 +0000722
723<p>The format of the SpreadImage method is:</p>
724
725<pre class="code">
726 Image *SpreadImage(const Image *image,const double radius,
727 ExceptionInfo *exception)
728</pre>
729
cristy7a40ba82011-01-08 20:31:18 +0000730<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000731
732<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000733<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000734
735<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000736<p>Choose a random pixel in a neighborhood of this extent.</p>
cristy3ed852e2009-09-05 21:47:34 +0000737
738<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000739<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000740
741 </div>
cristy7a40ba82011-01-08 20:31:18 +0000742<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
743_8c.html" id="UnsharpMaskImage">UnsharpMaskImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000744<div class="doc-section">
745
cristy7a40ba82011-01-08 20:31:18 +0000746<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>
cristy3ed852e2009-09-05 21:47:34 +0000747
748<p>The format of the UnsharpMaskImage method is:</p>
749
750<pre class="code">
751 Image *UnsharpMaskImage(const Image *image,const double radius,
752 const double sigma,const double amount,const double threshold,
753 ExceptionInfo *exception)
754 Image *UnsharpMaskImageChannel(const Image *image,
755 const ChannelType channel,const double radius,const double sigma,
756 const double amount,const double threshold,ExceptionInfo *exception)
757</pre>
758
cristy7a40ba82011-01-08 20:31:18 +0000759<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000760
761<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000762<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000763
764<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000765<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000766
767<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000768<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000769
770<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000771<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000772
773<h5>amount</h5>
cristy7a40ba82011-01-08 20:31:18 +0000774<p>the percentage of the difference between the original and the blur image that is added back into the original.</p>
cristy3ed852e2009-09-05 21:47:34 +0000775
776<h5>threshold</h5>
cristy7a40ba82011-01-08 20:31:18 +0000777<p>the threshold in pixels needed to apply the diffence amount.</p>
cristy3ed852e2009-09-05 21:47:34 +0000778
779<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000780<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000781
782 </div>
cristy3eaa0ef2010-03-06 20:35:26 +0000783
784</div>
785
786<div id="linkbar">
cristyce69bb02010-07-27 19:49:46 +0000787 <span id="linkbar-west">&nbsp;</span>
cristy3eaa0ef2010-03-06 20:35:26 +0000788 <span id="linkbar-center">
789 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> &bull;
cristya8902942010-07-30 00:49:52 +0000790 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
cristy3eaa0ef2010-03-06 20:35:26 +0000791 </span>
792 <span id="linkbar-east">&nbsp;</span>
793 </div>
794 <div class="footer">
cristy4103d562010-12-10 01:38:54 +0000795 <span id="footer-west">&copy; 1999-2011 ImageMagick Studio LLC</span>
cristy3eaa0ef2010-03-06 20:35:26 +0000796 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
797 </div>
798 <div style="clear: both; margin: 0; width: 100%; "></div>
cristya8902942010-07-30 00:49:52 +0000799 <script type="text/javascript">
800 var _gaq = _gaq || [];
801 _gaq.push(['_setAccount', 'UA-17690367-1']);
802 _gaq.push(['_trackPageview']);
803
804 (function() {
805 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
806 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
807 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
808 })();
809 </script>
cristy3eaa0ef2010-03-06 20:35:26 +0000810</body>
811</html>