blob: 97e736cb4853c6f438ed0ee5568b6b295240d63d [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"/>
cristydcca3fa2010-12-29 21:50:07 +000012 <meta name="Description" content="ImageMagick is a software suite to create, edit, compose, or convert bitmap images in a variety of formats. Use ImageMagick to scale, 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/">
55 <img src="../../images/logo.jpg" alt=""
cristy178edaf2011-01-23 03:42:39 +000056 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
cristy3eaa0ef2010-03-06 20:35:26 +000057<a href="../../index.html">
58 <img src="../../images/sprite.jpg" alt=""
59 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
60</div>
61
cristyce69bb02010-07-27 19:49:46 +000062<div class="westbar">
cristy3eaa0ef2010-03-06 20:35:26 +000063
cristy3ed852e2009-09-05 21:47:34 +000064<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000065 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
cristy3ed852e2009-09-05 21:47:34 +000066</div>
cristy3eaa0ef2010-03-06 20:35:26 +000067<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +000068<div class="menu">
cristybb503372010-05-27 20:51:26 +000069 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
70</div>
71<div class="sub">
72 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
73</div>
74<div class="sub">
75 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
76</div>
77<div class="sub">
78 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
79</div>
80<div class="sep"></div>
81<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000082 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
cristy3ed852e2009-09-05 21:47:34 +000083</div>
84<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000085 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
cristy3ed852e2009-09-05 21:47:34 +000086</div>
87<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000088 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
cristy3ed852e2009-09-05 21:47:34 +000089</div>
90<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000091 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
cristy3ed852e2009-09-05 21:47:34 +000092</div>
93<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000094 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
cristy3ed852e2009-09-05 21:47:34 +000095</div>
96<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000097 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
cristy3ed852e2009-09-05 21:47:34 +000098</div>
99<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000100 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
cristy3ed852e2009-09-05 21:47:34 +0000101</div>
102<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000103 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
cristy3ed852e2009-09-05 21:47:34 +0000104</div>
105<div class="sub">
cristydcca3fa2010-12-29 21:50:07 +0000106 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
cristy3ed852e2009-09-05 21:47:34 +0000107</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000108<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000109<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000110 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
cristy3ed852e2009-09-05 21:47:34 +0000111</div>
112<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000113 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
cristy3ed852e2009-09-05 21:47:34 +0000114</div>
115<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000116 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
cristy3ed852e2009-09-05 21:47:34 +0000117 </div>
118<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000119 <a title="Resources" href="../../www/resources.html">Resources</a>
cristy3ed852e2009-09-05 21:47:34 +0000120</div>
cristybb503372010-05-27 20:51:26 +0000121<div class="menu">
122 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
123</div>
cristy3ed852e2009-09-05 21:47:34 +0000124<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000125 <a title="Download" href="../../www/download.html">Download</a>
cristy3ed852e2009-09-05 21:47:34 +0000126</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000127<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000128<div class="menu">
cristy52923442011-01-15 22:54:31 +0000129 <a title="Search" href="../../www/search.html">Search</a>
cristy3ed852e2009-09-05 21:47:34 +0000130</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000131<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000132<div class="menu">
cristyffb69ed2010-12-25 00:06:48 +0000133 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
cristy3ed852e2009-09-05 21:47:34 +0000134</div>
135<div class="sub">
cristyffb69ed2010-12-25 00:06:48 +0000136 <a title="Site Map: Links" href="../../www/links.html">Links</a>
cristy3ed852e2009-09-05 21:47:34 +0000137</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000138<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000139<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000140 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
cristy3ed852e2009-09-05 21:47:34 +0000141
142<div class="sponsbox">
cristy178edaf2011-01-23 03:42:39 +0000143<div class="sponsor">
144 <a title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201106010240 -->
145</div>
cristyec6b4752011-01-08 03:16:23 +0000146<div class="sponsor">
cristy52923442011-01-15 22:54:31 +0000147 <a title="Sponsor: Web Hosting" href="http://www.bodhost.com/hosting.shtml">Web Hosting</a><!-- 201104010090 -->
cristy73fd1cd2010-09-12 19:14:25 +0000148</div>
149<div class="sponsor">
cristyc5baf4f2010-08-31 15:05:33 +0000150 <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee-->
151</div>
152<div class="sponsor">
cristy851dbce2010-08-06 21:40:00 +0000153 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
154</div>
cristyec6b4752011-01-08 03:16:23 +0000155<div class="sponsor">
cristy178edaf2011-01-23 03:42:39 +0000156 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
157</div>
158<div class="sponsor">
cristyf7964272011-01-30 03:49:12 +0000159 <a title="Sponsor: Custom T-Shirts" href="http://www.ooshirts.com">Custom T-Shirts</a><!-- 2011050100030 ooshirts.com-->
cristyec6b4752011-01-08 03:16:23 +0000160</div>
cristy3ed852e2009-09-05 21:47:34 +0000161</div>
162</div>
cristyce69bb02010-07-27 19:49:46 +0000163</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000164
cristyce69bb02010-07-27 19:49:46 +0000165<div class="eastbar">
166 <script type="text/javascript">
167 <!--
168 google_ad_client = "pub-3129977114552745";
cristyce69bb02010-07-27 19:49:46 +0000169 google_ad_slot = "0574824969";
170 google_ad_width = 160;
171 google_ad_height = 600;
172 //-->
173 </script>
174 <script type="text/javascript"
175 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
176 </script>
cristy3eaa0ef2010-03-06 20:35:26 +0000177</div>
178
179<div class="main">
180
cristy307ba182010-12-25 01:00:34 +0000181<h1>Module effect
182 Methods</h1>
cristy16ff93c2010-01-13 23:18:07 +0000183<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 +0000184
cristy7a40ba82011-01-08 20:31:18 +0000185<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
186_8c.html" id="AdaptiveBlurImage">AdaptiveBlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000187<div class="doc-section">
188
cristy7a40ba82011-01-08 20:31:18 +0000189<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 +0000190
191<p>The format of the AdaptiveBlurImage method is:</p>
192
193<pre class="code">
194 Image *AdaptiveBlurImage(const Image *image,const double radius,
195 const double sigma,ExceptionInfo *exception)
196 Image *AdaptiveBlurImageChannel(const Image *image,
197 const ChannelType channel,double radius,const double sigma,
198 ExceptionInfo *exception)
199</pre>
200
cristy7a40ba82011-01-08 20:31:18 +0000201<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000202
203<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000204<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000205
206<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000207<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000208
209<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000210<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000211
212<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000213<p>the standard deviation of the Laplacian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000214
215<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000216<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000217
218 </div>
cristy7a40ba82011-01-08 20:31:18 +0000219<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
220_8c.html" id="AdaptiveSharpenImage">AdaptiveSharpenImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000221<div class="doc-section">
222
cristy7a40ba82011-01-08 20:31:18 +0000223<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 +0000224
225<p>The format of the AdaptiveSharpenImage method is:</p>
226
227<pre class="code">
228 Image *AdaptiveSharpenImage(const Image *image,const double radius,
229 const double sigma,ExceptionInfo *exception)
230 Image *AdaptiveSharpenImageChannel(const Image *image,
231 const ChannelType channel,double radius,const double sigma,
232 ExceptionInfo *exception)
233</pre>
234
cristy7a40ba82011-01-08 20:31:18 +0000235<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000236
237<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000238<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000239
240<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000241<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000242
243<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000244<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000245
246<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000247<p>the standard deviation of the Laplacian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000248
249<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000250<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000251
252 </div>
cristy7a40ba82011-01-08 20:31:18 +0000253<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
254_8c.html" id="BlurImage">BlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000255<div class="doc-section">
256
cristy7a40ba82011-01-08 20:31:18 +0000257<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 +0000258
cristy7a40ba82011-01-08 20:31:18 +0000259<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 +0000260
261<p>The format of the BlurImage method is:</p>
262
263<pre class="code">
264 Image *BlurImage(const Image *image,const double radius,
265 const double sigma,ExceptionInfo *exception)
266 Image *BlurImageChannel(const Image *image,const ChannelType channel,
267 const double radius,const double sigma,ExceptionInfo *exception)
268</pre>
269
cristy7a40ba82011-01-08 20:31:18 +0000270<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000271
272<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000273<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000274
275<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000276<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000277
278<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000279<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000280
281<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000282<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000283
284<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000285<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000286
287 </div>
cristy7a40ba82011-01-08 20:31:18 +0000288<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
289_8c.html" id="ConvolveImage">ConvolveImage</a></h2>
cristy6b636652009-12-05 17:16:11 +0000290<div class="doc-section">
291
cristy7a40ba82011-01-08 20:31:18 +0000292<p>ConvolveImage() applies a custom convolution kernel to the image.</p>
cristy6b636652009-12-05 17:16:11 +0000293
294<p>The format of the ConvolveImage method is:</p>
295
296<pre class="code">
cristybb503372010-05-27 20:51:26 +0000297 Image *ConvolveImage(const Image *image,const size_t order,
cristy6b636652009-12-05 17:16:11 +0000298 const double *kernel,ExceptionInfo *exception)
299 Image *ConvolveImageChannel(const Image *image,const ChannelType channel,
cristybc9539a2010-08-16 18:06:20 +0000300 const size_t order,const double *kernel,ExceptionInfo *exception)
cristy6b636652009-12-05 17:16:11 +0000301</pre>
302
cristy7a40ba82011-01-08 20:31:18 +0000303<p>A description of each parameter follows:</p>
cristy6b636652009-12-05 17:16:11 +0000304
305<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000306<p>the image.</p>
cristy6b636652009-12-05 17:16:11 +0000307
308<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000309<p>the channel type.</p>
cristy6b636652009-12-05 17:16:11 +0000310
311<h5>order</h5>
cristy7a40ba82011-01-08 20:31:18 +0000312<p>the number of columns and rows in the filter kernel.</p>
cristy6b636652009-12-05 17:16:11 +0000313
314<h5>kernel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000315<p>An array of double representing the convolution kernel.</p>
cristy6b636652009-12-05 17:16:11 +0000316
317<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000318<p>return any errors or warnings in this structure.</p>
cristy6b636652009-12-05 17:16:11 +0000319
320 </div>
cristy7a40ba82011-01-08 20:31:18 +0000321<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
322_8c.html" id="DespeckleImage">DespeckleImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000323<div class="doc-section">
324
cristy7a40ba82011-01-08 20:31:18 +0000325<p>DespeckleImage() reduces the speckle noise in an image while perserving the edges of the original image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000326
327<p>The format of the DespeckleImage method is:</p>
328
329<pre class="code">
330 Image *DespeckleImage(const Image *image,ExceptionInfo *exception)
331</pre>
332
cristy7a40ba82011-01-08 20:31:18 +0000333<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000334
335<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000336<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000337
338<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000339<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000340
341 </div>
cristy7a40ba82011-01-08 20:31:18 +0000342<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
343_8c.html" id="EdgeImage">EdgeImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000344<div class="doc-section">
345
cristy7a40ba82011-01-08 20:31:18 +0000346<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 +0000347
348<p>The format of the EdgeImage method is:</p>
349
350<pre class="code">
351 Image *EdgeImage(const Image *image,const double radius,
352 ExceptionInfo *exception)
353</pre>
354
cristy7a40ba82011-01-08 20:31:18 +0000355<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000356
357<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000358<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000359
360<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000361<p>the radius of the pixel neighborhood.</p>
cristy3ed852e2009-09-05 21:47:34 +0000362
363<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000364<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000365
366 </div>
cristy7a40ba82011-01-08 20:31:18 +0000367<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
368_8c.html" id="EmbossImage">EmbossImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000369<div class="doc-section">
370
cristy7a40ba82011-01-08 20:31:18 +0000371<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 +0000372
373<p>The format of the EmbossImage method is:</p>
374
375<pre class="code">
376 Image *EmbossImage(const Image *image,const double radius,
377 const double sigma,ExceptionInfo *exception)
378</pre>
379
cristy7a40ba82011-01-08 20:31:18 +0000380<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000381
382<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000383<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000384
385<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000386<p>the radius of the pixel neighborhood.</p>
cristy3ed852e2009-09-05 21:47:34 +0000387
388<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000389<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000390
391<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000392<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000393
394 </div>
cristy7a40ba82011-01-08 20:31:18 +0000395<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
396_8c.html" id="FilterImage">FilterImage</a></h2>
cristy16ff93c2010-01-13 23:18:07 +0000397<div class="doc-section">
398
cristy7a40ba82011-01-08 20:31:18 +0000399<p>FilterImage() applies a custom convolution kernel to the image.</p>
cristy16ff93c2010-01-13 23:18:07 +0000400
401<p>The format of the FilterImage method is:</p>
402
403<pre class="code">
cristy488844c2010-01-22 14:02:05 +0000404 Image *FilterImage(const Image *image,const KernelInfo *kernel,
cristy16ff93c2010-01-13 23:18:07 +0000405 ExceptionInfo *exception)
406 Image *FilterImageChannel(const Image *image,const ChannelType channel,
cristy488844c2010-01-22 14:02:05 +0000407 const KernelInfo *kernel,ExceptionInfo *exception)
cristy16ff93c2010-01-13 23:18:07 +0000408</pre>
409
cristy7a40ba82011-01-08 20:31:18 +0000410<p>A description of each parameter follows:</p>
cristy16ff93c2010-01-13 23:18:07 +0000411
412<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000413<p>the image.</p>
cristy16ff93c2010-01-13 23:18:07 +0000414
415<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000416<p>the channel type.</p>
cristy16ff93c2010-01-13 23:18:07 +0000417
418<h5>kernel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000419<p>the filtering kernel.</p>
cristy16ff93c2010-01-13 23:18:07 +0000420
421<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000422<p>return any errors or warnings in this structure.</p>
cristy16ff93c2010-01-13 23:18:07 +0000423
424 </div>
cristy7a40ba82011-01-08 20:31:18 +0000425<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
426_8c.html" id="GaussianBlurImage">GaussianBlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000427<div class="doc-section">
428
cristy7a40ba82011-01-08 20:31:18 +0000429<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 +0000430
431<p>The format of the GaussianBlurImage method is:</p>
432
433<pre class="code">
434 Image *GaussianBlurImage(const Image *image,onst double radius,
435 const double sigma,ExceptionInfo *exception)
436 Image *GaussianBlurImageChannel(const Image *image,
437 const ChannelType channel,const double radius,const double sigma,
438 ExceptionInfo *exception)
439</pre>
440
cristy7a40ba82011-01-08 20:31:18 +0000441<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000442
443<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000444<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000445
446<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000447<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000448
449<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000450<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000451
452<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000453<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000454
455<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000456<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000457
458 </div>
cristy7a40ba82011-01-08 20:31:18 +0000459<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
460_8c.html" id="MedianFilterImage">MedianFilterImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000461<div class="doc-section">
462
cristy7a40ba82011-01-08 20:31:18 +0000463<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 +0000464
cristy7a40ba82011-01-08 20:31:18 +0000465<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 +0000466
467<p>The format of the MedianFilterImage method is:</p>
468
469<pre class="code">
470 Image *MedianFilterImage(const Image *image,const double radius,
471 ExceptionInfo *exception)
472</pre>
473
cristy7a40ba82011-01-08 20:31:18 +0000474<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000475
476<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000477<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000478
479<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000480<p>the radius of the pixel neighborhood.</p>
cristy3ed852e2009-09-05 21:47:34 +0000481
482<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000483<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000484
485 </div>
cristy7a40ba82011-01-08 20:31:18 +0000486<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
487_8c.html" id="MotionBlurImage">MotionBlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000488<div class="doc-section">
489
cristy7a40ba82011-01-08 20:31:18 +0000490<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 +0000491
cristy7a40ba82011-01-08 20:31:18 +0000492<p>Andrew Protano contributed this effect.</p>
cristy3ed852e2009-09-05 21:47:34 +0000493
494<p>The format of the MotionBlurImage method is:</p>
495
496<pre class="code">
497 Image *MotionBlurImage(const Image *image,const double radius,
498 const double sigma,const double angle,ExceptionInfo *exception)
499 Image *MotionBlurImageChannel(const Image *image,const ChannelType channel,
500 const double radius,const double sigma,const double angle,
501 ExceptionInfo *exception)
502</pre>
503
cristy7a40ba82011-01-08 20:31:18 +0000504<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000505
506<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000507<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000508
509<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000510<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000511
512<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000513<p>the radius of the Gaussian, in pixels, not counting the center</p>
cristy3ed852e2009-09-05 21:47:34 +0000514<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000515<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000516
517<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000518<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000519
520<h5>angle</h5>
cristy7a40ba82011-01-08 20:31:18 +0000521<p>Apply the effect along this angle.</p>
cristy3ed852e2009-09-05 21:47:34 +0000522
523<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000524<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000525
526 </div>
cristy7a40ba82011-01-08 20:31:18 +0000527<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
528_8c.html" id="PreviewImage">PreviewImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000529<div class="doc-section">
530
cristy7a40ba82011-01-08 20:31:18 +0000531<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 +0000532
533<p>The format of the PreviewImages method is:</p>
534
535<pre class="code">
536 Image *PreviewImages(const Image *image,const PreviewType preview,
537 ExceptionInfo *exception)
538</pre>
539
cristy7a40ba82011-01-08 20:31:18 +0000540<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000541
542<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000543<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000544
545<h5>preview</h5>
cristy7a40ba82011-01-08 20:31:18 +0000546<p>the image processing operation.</p>
cristy3ed852e2009-09-05 21:47:34 +0000547
548<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000549<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000550
551 </div>
cristy7a40ba82011-01-08 20:31:18 +0000552<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
553_8c.html" id="RadialBlurImage">RadialBlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000554<div class="doc-section">
555
cristy7a40ba82011-01-08 20:31:18 +0000556<p>RadialBlurImage() applies a radial blur to the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000557
cristy7a40ba82011-01-08 20:31:18 +0000558<p>Andrew Protano contributed this effect.</p>
cristy3ed852e2009-09-05 21:47:34 +0000559
560<p>The format of the RadialBlurImage method is:</p>
561
562<pre class="code">
563 Image *RadialBlurImage(const Image *image,const double angle,
564 ExceptionInfo *exception)
565 Image *RadialBlurImageChannel(const Image *image,const ChannelType channel,
566 const double angle,ExceptionInfo *exception)
567</pre>
568
cristy7a40ba82011-01-08 20:31:18 +0000569<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000570
571<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000572<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000573
574<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000575<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000576
577<h5>angle</h5>
cristy7a40ba82011-01-08 20:31:18 +0000578<p>the angle of the radial blur.</p>
cristy3ed852e2009-09-05 21:47:34 +0000579
580<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000581<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000582
583 </div>
cristy7a40ba82011-01-08 20:31:18 +0000584<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
585_8c.html" id="ReduceNoiseImage">ReduceNoiseImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000586<div class="doc-section">
587
cristy7a40ba82011-01-08 20:31:18 +0000588<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 +0000589
590<p>The format of the ReduceNoiseImage method is:</p>
591
592<pre class="code">
593 Image *ReduceNoiseImage(const Image *image,const double radius,
594 ExceptionInfo *exception)
595</pre>
596
cristy7a40ba82011-01-08 20:31:18 +0000597<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000598
599<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000600<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000601
602<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000603<p>the radius of the pixel neighborhood.</p>
cristy3ed852e2009-09-05 21:47:34 +0000604
605<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000606<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000607
608 </div>
cristy7a40ba82011-01-08 20:31:18 +0000609<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
610_8c.html" id="SelectiveBlurImage">SelectiveBlurImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000611<div class="doc-section">
612
cristy7a40ba82011-01-08 20:31:18 +0000613<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 +0000614
615<p>The format of the SelectiveBlurImage method is:</p>
616
617<pre class="code">
618 Image *SelectiveBlurImage(const Image *image,const double radius,
619 const double sigma,const double threshold,ExceptionInfo *exception)
620 Image *SelectiveBlurImageChannel(const Image *image,
621 const ChannelType channel,const double radius,const double sigma,
622 const double threshold,ExceptionInfo *exception)
623</pre>
624
cristy7a40ba82011-01-08 20:31:18 +0000625<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000626
627<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000628<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000629
630<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000631<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000632
633<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000634<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000635
636<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000637<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000638
639<h5>threshold</h5>
cristy7a40ba82011-01-08 20:31:18 +0000640<p>only pixels within this contrast threshold are included in the blur operation.</p>
cristy3ed852e2009-09-05 21:47:34 +0000641
642<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000643<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000644
645 </div>
cristy7a40ba82011-01-08 20:31:18 +0000646<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
647_8c.html" id="ShadeImage">ShadeImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000648<div class="doc-section">
649
cristy7a40ba82011-01-08 20:31:18 +0000650<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 +0000651
652<p>The format of the ShadeImage method is:</p>
653
654<pre class="code">
655 Image *ShadeImage(const Image *image,const MagickBooleanType gray,
656 const double azimuth,const double elevation,ExceptionInfo *exception)
657</pre>
658
cristy7a40ba82011-01-08 20:31:18 +0000659<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000660
661<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000662<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000663
664<h5>gray</h5>
cristy7a40ba82011-01-08 20:31:18 +0000665<p>A value other than zero shades the intensity of each pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000666
667<h5>azimuth, elevation</h5>
cristy7a40ba82011-01-08 20:31:18 +0000668<p>Define the light source direction.</p>
cristy3ed852e2009-09-05 21:47:34 +0000669
670<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000671<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000672
673 </div>
cristy7a40ba82011-01-08 20:31:18 +0000674<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
675_8c.html" id="SharpenImage">SharpenImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000676<div class="doc-section">
677
cristy7a40ba82011-01-08 20:31:18 +0000678<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 +0000679
cristy7a40ba82011-01-08 20:31:18 +0000680<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 +0000681
682<p>The format of the SharpenImage method is:</p>
683
684<pre class="code">
685 Image *SharpenImage(const Image *image,const double radius,
686 const double sigma,ExceptionInfo *exception)
687 Image *SharpenImageChannel(const Image *image,const ChannelType channel,
688 const double radius,const double sigma,ExceptionInfo *exception)
689</pre>
690
cristy7a40ba82011-01-08 20:31:18 +0000691<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000692
693<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000694<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000695
696<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000697<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000698
699<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000700<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000701
702<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000703<p>the standard deviation of the Laplacian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000704
705<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000706<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000707
708 </div>
cristy7a40ba82011-01-08 20:31:18 +0000709<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
710_8c.html" id="SpreadImage">SpreadImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000711<div class="doc-section">
712
cristy7a40ba82011-01-08 20:31:18 +0000713<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 +0000714
715<p>The format of the SpreadImage method is:</p>
716
717<pre class="code">
718 Image *SpreadImage(const Image *image,const double radius,
719 ExceptionInfo *exception)
720</pre>
721
cristy7a40ba82011-01-08 20:31:18 +0000722<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000723
724<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000725<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000726
727<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000728<p>Choose a random pixel in a neighborhood of this extent.</p>
cristy3ed852e2009-09-05 21:47:34 +0000729
730<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000731<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000732
733 </div>
cristy7a40ba82011-01-08 20:31:18 +0000734<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
735_8c.html" id="UnsharpMaskImage">UnsharpMaskImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000736<div class="doc-section">
737
cristy7a40ba82011-01-08 20:31:18 +0000738<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 +0000739
740<p>The format of the UnsharpMaskImage method is:</p>
741
742<pre class="code">
743 Image *UnsharpMaskImage(const Image *image,const double radius,
744 const double sigma,const double amount,const double threshold,
745 ExceptionInfo *exception)
746 Image *UnsharpMaskImageChannel(const Image *image,
747 const ChannelType channel,const double radius,const double sigma,
748 const double amount,const double threshold,ExceptionInfo *exception)
749</pre>
750
cristy7a40ba82011-01-08 20:31:18 +0000751<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000752
753<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000754<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000755
756<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000757<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000758
759<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000760<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000761
762<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000763<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000764
765<h5>amount</h5>
cristy7a40ba82011-01-08 20:31:18 +0000766<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 +0000767
768<h5>threshold</h5>
cristy7a40ba82011-01-08 20:31:18 +0000769<p>the threshold in pixels needed to apply the diffence amount.</p>
cristy3ed852e2009-09-05 21:47:34 +0000770
771<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000772<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000773
774 </div>
cristy3eaa0ef2010-03-06 20:35:26 +0000775
776</div>
777
778<div id="linkbar">
cristyce69bb02010-07-27 19:49:46 +0000779 <span id="linkbar-west">&nbsp;</span>
cristy3eaa0ef2010-03-06 20:35:26 +0000780 <span id="linkbar-center">
781 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> &bull;
cristya8902942010-07-30 00:49:52 +0000782 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
cristy3eaa0ef2010-03-06 20:35:26 +0000783 </span>
784 <span id="linkbar-east">&nbsp;</span>
785 </div>
786 <div class="footer">
cristy4103d562010-12-10 01:38:54 +0000787 <span id="footer-west">&copy; 1999-2011 ImageMagick Studio LLC</span>
cristy3eaa0ef2010-03-06 20:35:26 +0000788 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
789 </div>
790 <div style="clear: both; margin: 0; width: 100%; "></div>
cristya8902942010-07-30 00:49:52 +0000791 <script type="text/javascript">
792 var _gaq = _gaq || [];
793 _gaq.push(['_setAccount', 'UA-17690367-1']);
794 _gaq.push(['_trackPageview']);
795
796 (function() {
797 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
798 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
799 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
800 })();
801 </script>
cristy3eaa0ef2010-03-06 20:35:26 +0000802</body>
803</html>