]> granicus.if.org Git - imagemagick/blob - www/api/effect.html
(no commit message)
[imagemagick] / www / api / effect.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" \r
2   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr">\r
4 <head>\r
5   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>\r
6   <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>\r
7   <title>ImageMagick: MagickCore, C API for ImageMagick: Add an Effect</title>
8   <meta http-equiv="Content-Language" content="en-US"/>
9   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
10   <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
11   <meta name="Application-name" content="ImageMagick"/>
12   <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."/>
13   <meta name="Application-url" content="http://www.imagemagick.org"/>
14   <meta name="Generator" content="PHP"/>
15   <meta name="Keywords" content="magickcore, c, api, for, imagemagick:, add, an, effect, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/>
16   <meta name="Rating" content="GENERAL"/>
17   <meta name="Robots" content="INDEX, FOLLOW"/>
18   <meta name="Generator" content="ImageMagick Studio LLC"/>
19   <meta name="Author" content="ImageMagick Studio LLC"/>
20   <meta name="Revisit-after" content="2 DAYS"/>
21   <meta name="Resource-type" content="document"/>
22   <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
23   <meta name="Distribution" content="Global"/>
24   <link rel="icon" href="../../images/wand.png"/>
25   <link rel="shortcut icon" href="../../images/wand.ico"  type="images/x-icon"/>
26   <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>\r
27   <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />\r
28   <style type="text/css" media="all">\r
29     @import url("../../www/magick.css");\r
30   </style>\r
31   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>\r
32   <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>\r
33   <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />\r
34   <script type="text/javascript">\r
35     $(document).ready(function() {\r
36       $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({\r
37         'transitionIn'  : 'elastic',\r
38         'transitionOut' : 'elastic',\r
39         'overlayShow'   : false,\r
40         'opacity'       : true\r
41       });\r
42     });\r
43   </script>\r
44 </head>\r
45 \r
46 <body id="www-imagemagick-org">\r
47 <div class="titlebar">\r
48 <a href="../../index.html">\r
49   <img src="../../images/script.png" alt="[ImageMagick]"\r
50   style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>\r
51 <a href="http://www.networkredux.com">\r
52   <img src="../../images/networkredux.png" alt="[sponsor]"\r
53   style="margin-top: 42px; border: 0px; float: left;" /></a>\r
54 <a href="http://www.imagemagick.org/discourse-server/">\r
55   <img src="../../images/logo.jpg" alt=""\r
56   style="width: 114px; height: 118px; border: 0px; float: right;" /></a>\r
57 <a href="../../index.html">\r
58   <img src="../../images/sprite.jpg" alt=""\r
59   style="width: 114px; height: 118px; border: 0px; float: right;" /></a>\r
60 </div>\r
61 \r
62 <div class="westbar">\r
63 \r
64 <div class="menu">
65   <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
66 </div>
67 <div class="sep"></div>\r
68 <div class="menu">
69   <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>\r
81 <div class="menu">
82   <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
83 </div>
84 <div class="sub">
85     <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
86 </div>
87 <div class="sub">
88     <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
89 </div>
90 <div class="sub">
91     <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
92 </div>
93 <div class="menu">
94   <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
95 </div>
96 <div class="sub">
97     <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
98 </div>
99 <div class="sub">
100     <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
101 </div>
102 <div class="sub">
103     <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
104 </div>
105 <div class="sub">
106     <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
107 </div>
108 <div class="sep"></div>\r
109 <div  class="menu">
110    <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
111 </div>
112 <div class="sub">
113     <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
114 </div>
115 <div class="sub">
116     <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
117  </div>
118 <div class="menu">
119   <a title="Resources" href="../../www/resources.html">Resources</a>
120 </div>
121 <div class="menu">
122   <a title="Architecture" href="../../www/architecture.html">Architecture</a>
123 </div>
124 <div class="menu">
125   <a title="Download" href="../../www/download.html">Download</a>
126 </div>
127 <div class="sep"></div>\r
128 <div class="menu">
129   <a title="Search" href="../../www/search.html">Search</a>
130 </div>
131 <div class="sep"></div>\r
132 <div class="menu">
133   <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
134 </div>
135 <div  class="sub">
136   <a title="Site Map: Links" href="../../www/links.html">Links</a>
137 </div>
138 <div class="sep"></div>\r
139 <div  class="menu">
140   <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
141
142 <div class="sponsbox">
143 <div class="sponsor">
144   <a title="Sponsor: Web Hosting" href="http://www.bodhost.com/hosting.shtml">Web Hosting</a><!-- 201104010090 -->
145 </div>
146 <div  class="sponsor">
147   <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
148 </div>
149 <div  class="sponsor">
150   <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee-->
151 </div>
152 <div  class="sponsor">
153   <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
154 </div>
155 <div  class="sponsor">
156    <a title="Sponsor: Webdesign" href="http://www.renehornig.com/">Webdesign</a><!-- 20111001000240 -->
157 </div>
158 </div>
159 </div>
160 </div>\r
161 \r
162 <div class="eastbar">\r
163   <script type="text/javascript">\r
164   <!--\r
165     google_ad_client = "pub-3129977114552745";\r
166     google_ad_slot = "0574824969";\r
167     google_ad_width = 160;\r
168     google_ad_height = 600;\r
169   //-->\r
170   </script>\r
171   <script type="text/javascript"\r
172     src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\r
173   </script>\r
174 </div>\r
175 \r
176 <div class="main">\r
177 \r
178 <h1>Module effect
179  Methods</h1>
180 <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>
181
182 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
183 _8c.html" id="AdaptiveBlurImage">AdaptiveBlurImage</a></h2>
184 <div class="doc-section">
185
186 <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>
187
188 <p>The format of the AdaptiveBlurImage method is:</p>
189
190 <pre class="code">
191   Image *AdaptiveBlurImage(const Image *image,const double radius,
192     const double sigma,ExceptionInfo *exception)
193   Image *AdaptiveBlurImageChannel(const Image *image,
194     const ChannelType channel,double radius,const double sigma,
195     ExceptionInfo *exception)
196 </pre>
197
198 <p>A description of each parameter follows:</p>
199
200 <h5>image</h5>
201 <p>the image.</p>
202
203 <h5>channel</h5>
204 <p>the channel type.</p>
205
206 <h5>radius</h5>
207 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
208
209 <h5>sigma</h5>
210 <p>the standard deviation of the Laplacian, in pixels.</p>
211
212 <h5>exception</h5>
213 <p>return any errors or warnings in this structure.</p>
214
215  </div>
216 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
217 _8c.html" id="AdaptiveSharpenImage">AdaptiveSharpenImage</a></h2>
218 <div class="doc-section">
219
220 <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>
221
222 <p>The format of the AdaptiveSharpenImage method is:</p>
223
224 <pre class="code">
225   Image *AdaptiveSharpenImage(const Image *image,const double radius,
226     const double sigma,ExceptionInfo *exception)
227   Image *AdaptiveSharpenImageChannel(const Image *image,
228     const ChannelType channel,double radius,const double sigma,
229     ExceptionInfo *exception)
230 </pre>
231
232 <p>A description of each parameter follows:</p>
233
234 <h5>image</h5>
235 <p>the image.</p>
236
237 <h5>channel</h5>
238 <p>the channel type.</p>
239
240 <h5>radius</h5>
241 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
242
243 <h5>sigma</h5>
244 <p>the standard deviation of the Laplacian, in pixels.</p>
245
246 <h5>exception</h5>
247 <p>return any errors or warnings in this structure.</p>
248
249  </div>
250 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
251 _8c.html" id="BlurImage">BlurImage</a></h2>
252 <div class="doc-section">
253
254 <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>
255
256 <p>BlurImage() differs from GaussianBlurImage() in that it uses a separable kernel which is faster but mathematically equivalent to the non-separable kernel.</p>
257
258 <p>The format of the BlurImage method is:</p>
259
260 <pre class="code">
261   Image *BlurImage(const Image *image,const double radius,
262     const double sigma,ExceptionInfo *exception)
263   Image *BlurImageChannel(const Image *image,const ChannelType channel,
264     const double radius,const double sigma,ExceptionInfo *exception)
265 </pre>
266
267 <p>A description of each parameter follows:</p>
268
269 <h5>image</h5>
270 <p>the image.</p>
271
272 <h5>channel</h5>
273 <p>the channel type.</p>
274
275 <h5>radius</h5>
276 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
277
278 <h5>sigma</h5>
279 <p>the standard deviation of the Gaussian, in pixels.</p>
280
281 <h5>exception</h5>
282 <p>return any errors or warnings in this structure.</p>
283
284  </div>
285 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
286 _8c.html" id="ConvolveImage">ConvolveImage</a></h2>
287 <div class="doc-section">
288
289 <p>ConvolveImage() applies a custom convolution kernel to the image.</p>
290
291 <p>The format of the ConvolveImage method is:</p>
292
293 <pre class="code">
294   Image *ConvolveImage(const Image *image,const size_t order,
295     const double *kernel,ExceptionInfo *exception)
296   Image *ConvolveImageChannel(const Image *image,const ChannelType channel,
297     const size_t order,const double *kernel,ExceptionInfo *exception)
298 </pre>
299
300 <p>A description of each parameter follows:</p>
301
302 <h5>image</h5>
303 <p>the image.</p>
304
305 <h5>channel</h5>
306 <p>the channel type.</p>
307
308 <h5>order</h5>
309 <p>the number of columns and rows in the filter kernel.</p>
310
311 <h5>kernel</h5>
312 <p>An array of double representing the convolution kernel.</p>
313
314 <h5>exception</h5>
315 <p>return any errors or warnings in this structure.</p>
316
317  </div>
318 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
319 _8c.html" id="DespeckleImage">DespeckleImage</a></h2>
320 <div class="doc-section">
321
322 <p>DespeckleImage() reduces the speckle noise in an image while perserving the edges of the original image.</p>
323
324 <p>The format of the DespeckleImage method is:</p>
325
326 <pre class="code">
327   Image *DespeckleImage(const Image *image,ExceptionInfo *exception)
328 </pre>
329
330 <p>A description of each parameter follows:</p>
331
332 <h5>image</h5>
333 <p>the image.</p>
334
335 <h5>exception</h5>
336 <p>return any errors or warnings in this structure.</p>
337
338  </div>
339 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
340 _8c.html" id="EdgeImage">EdgeImage</a></h2>
341 <div class="doc-section">
342
343 <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>
344
345 <p>The format of the EdgeImage method is:</p>
346
347 <pre class="code">
348   Image *EdgeImage(const Image *image,const double radius,
349     ExceptionInfo *exception)
350 </pre>
351
352 <p>A description of each parameter follows:</p>
353
354 <h5>image</h5>
355 <p>the image.</p>
356
357 <h5>radius</h5>
358 <p>the radius of the pixel neighborhood.</p>
359
360 <h5>exception</h5>
361 <p>return any errors or warnings in this structure.</p>
362
363  </div>
364 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
365 _8c.html" id="EmbossImage">EmbossImage</a></h2>
366 <div class="doc-section">
367
368 <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>
369
370 <p>The format of the EmbossImage method is:</p>
371
372 <pre class="code">
373   Image *EmbossImage(const Image *image,const double radius,
374     const double sigma,ExceptionInfo *exception)
375 </pre>
376
377 <p>A description of each parameter follows:</p>
378
379 <h5>image</h5>
380 <p>the image.</p>
381
382 <h5>radius</h5>
383 <p>the radius of the pixel neighborhood.</p>
384
385 <h5>sigma</h5>
386 <p>the standard deviation of the Gaussian, in pixels.</p>
387
388 <h5>exception</h5>
389 <p>return any errors or warnings in this structure.</p>
390
391  </div>
392 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
393 _8c.html" id="FilterImage">FilterImage</a></h2>
394 <div class="doc-section">
395
396 <p>FilterImage() applies a custom convolution kernel to the image.</p>
397
398 <p>The format of the FilterImage method is:</p>
399
400 <pre class="code">
401   Image *FilterImage(const Image *image,const KernelInfo *kernel,
402     ExceptionInfo *exception)
403   Image *FilterImageChannel(const Image *image,const ChannelType channel,
404     const KernelInfo *kernel,ExceptionInfo *exception)
405 </pre>
406
407 <p>A description of each parameter follows:</p>
408
409 <h5>image</h5>
410 <p>the image.</p>
411
412 <h5>channel</h5>
413 <p>the channel type.</p>
414
415 <h5>kernel</h5>
416 <p>the filtering kernel.</p>
417
418 <h5>exception</h5>
419 <p>return any errors or warnings in this structure.</p>
420
421  </div>
422 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
423 _8c.html" id="GaussianBlurImage">GaussianBlurImage</a></h2>
424 <div class="doc-section">
425
426 <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>
427
428 <p>The format of the GaussianBlurImage method is:</p>
429
430 <pre class="code">
431   Image *GaussianBlurImage(const Image *image,onst double radius,
432     const double sigma,ExceptionInfo *exception)
433   Image *GaussianBlurImageChannel(const Image *image,
434     const ChannelType channel,const double radius,const double sigma,
435     ExceptionInfo *exception)
436 </pre>
437
438 <p>A description of each parameter follows:</p>
439
440 <h5>image</h5>
441 <p>the image.</p>
442
443 <h5>channel</h5>
444 <p>the channel type.</p>
445
446 <h5>radius</h5>
447 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
448
449 <h5>sigma</h5>
450 <p>the standard deviation of the Gaussian, in pixels.</p>
451
452 <h5>exception</h5>
453 <p>return any errors or warnings in this structure.</p>
454
455  </div>
456 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
457 _8c.html" id="MedianFilterImage">MedianFilterImage</a></h2>
458 <div class="doc-section">
459
460 <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>
461
462 <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>
463
464 <p>The format of the MedianFilterImage method is:</p>
465
466 <pre class="code">
467   Image *MedianFilterImage(const Image *image,const double radius,
468     ExceptionInfo *exception)
469 </pre>
470
471 <p>A description of each parameter follows:</p>
472
473 <h5>image</h5>
474 <p>the image.</p>
475
476 <h5>radius</h5>
477 <p>the radius of the pixel neighborhood.</p>
478
479 <h5>exception</h5>
480 <p>return any errors or warnings in this structure.</p>
481
482  </div>
483 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
484 _8c.html" id="MotionBlurImage">MotionBlurImage</a></h2>
485 <div class="doc-section">
486
487 <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>
488
489 <p>Andrew Protano contributed this effect.</p>
490
491 <p>The format of the MotionBlurImage method is:</p>
492
493 <pre class="code">
494       Image *MotionBlurImage(const Image *image,const double radius,
495   const double sigma,const double angle,ExceptionInfo *exception)
496       Image *MotionBlurImageChannel(const Image *image,const ChannelType channel,
497   const double radius,const double sigma,const double angle,
498   ExceptionInfo *exception)
499 </pre>
500
501 <p>A description of each parameter follows:</p>
502
503 <h5>image</h5>
504 <p>the image.</p>
505
506 <h5>channel</h5>
507 <p>the channel type.</p>
508
509 <h5>radius</h5>
510 <p>the radius of the Gaussian, in pixels, not counting the center</p>
511 <h5>radius</h5>
512 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
513
514 <h5>sigma</h5>
515 <p>the standard deviation of the Gaussian, in pixels.</p>
516
517 <h5>angle</h5>
518 <p>Apply the effect along this angle.</p>
519
520 <h5>exception</h5>
521 <p>return any errors or warnings in this structure.</p>
522
523  </div>
524 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
525 _8c.html" id="PreviewImage">PreviewImage</a></h2>
526 <div class="doc-section">
527
528 <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>
529
530 <p>The format of the PreviewImages method is:</p>
531
532 <pre class="code">
533   Image *PreviewImages(const Image *image,const PreviewType preview,
534     ExceptionInfo *exception)
535 </pre>
536
537 <p>A description of each parameter follows:</p>
538
539 <h5>image</h5>
540 <p>the image.</p>
541
542 <h5>preview</h5>
543 <p>the image processing operation.</p>
544
545 <h5>exception</h5>
546 <p>return any errors or warnings in this structure.</p>
547
548  </div>
549 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
550 _8c.html" id="RadialBlurImage">RadialBlurImage</a></h2>
551 <div class="doc-section">
552
553 <p>RadialBlurImage() applies a radial blur to the image.</p>
554
555 <p>Andrew Protano contributed this effect.</p>
556
557 <p>The format of the RadialBlurImage method is:</p>
558
559 <pre class="code">
560       Image *RadialBlurImage(const Image *image,const double angle,
561   ExceptionInfo *exception)
562       Image *RadialBlurImageChannel(const Image *image,const ChannelType channel,
563   const double angle,ExceptionInfo *exception)
564 </pre>
565
566 <p>A description of each parameter follows:</p>
567
568 <h5>image</h5>
569 <p>the image.</p>
570
571 <h5>channel</h5>
572 <p>the channel type.</p>
573
574 <h5>angle</h5>
575 <p>the angle of the radial blur.</p>
576
577 <h5>exception</h5>
578 <p>return any errors or warnings in this structure.</p>
579
580  </div>
581 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
582 _8c.html" id="ReduceNoiseImage">ReduceNoiseImage</a></h2>
583 <div class="doc-section">
584
585 <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>
586
587 <p>The format of the ReduceNoiseImage method is:</p>
588
589 <pre class="code">
590   Image *ReduceNoiseImage(const Image *image,const double radius,
591     ExceptionInfo *exception)
592 </pre>
593
594 <p>A description of each parameter follows:</p>
595
596 <h5>image</h5>
597 <p>the image.</p>
598
599 <h5>radius</h5>
600 <p>the radius of the pixel neighborhood.</p>
601
602 <h5>exception</h5>
603 <p>return any errors or warnings in this structure.</p>
604
605  </div>
606 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
607 _8c.html" id="SelectiveBlurImage">SelectiveBlurImage</a></h2>
608 <div class="doc-section">
609
610 <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>
611
612 <p>The format of the SelectiveBlurImage method is:</p>
613
614 <pre class="code">
615   Image *SelectiveBlurImage(const Image *image,const double radius,
616     const double sigma,const double threshold,ExceptionInfo *exception)
617   Image *SelectiveBlurImageChannel(const Image *image,
618     const ChannelType channel,const double radius,const double sigma,
619     const double threshold,ExceptionInfo *exception)
620 </pre>
621
622 <p>A description of each parameter follows:</p>
623
624 <h5>image</h5>
625 <p>the image.</p>
626
627 <h5>channel</h5>
628 <p>the channel type.</p>
629
630 <h5>radius</h5>
631 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
632
633 <h5>sigma</h5>
634 <p>the standard deviation of the Gaussian, in pixels.</p>
635
636 <h5>threshold</h5>
637 <p>only pixels within this contrast threshold are included in the blur operation.</p>
638
639 <h5>exception</h5>
640 <p>return any errors or warnings in this structure.</p>
641
642  </div>
643 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
644 _8c.html" id="ShadeImage">ShadeImage</a></h2>
645 <div class="doc-section">
646
647 <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>
648
649 <p>The format of the ShadeImage method is:</p>
650
651 <pre class="code">
652   Image *ShadeImage(const Image *image,const MagickBooleanType gray,
653     const double azimuth,const double elevation,ExceptionInfo *exception)
654 </pre>
655
656 <p>A description of each parameter follows:</p>
657
658 <h5>image</h5>
659 <p>the image.</p>
660
661 <h5>gray</h5>
662 <p>A value other than zero shades the intensity of each pixel.</p>
663
664 <h5>azimuth, elevation</h5>
665 <p>Define the light source direction.</p>
666
667 <h5>exception</h5>
668 <p>return any errors or warnings in this structure.</p>
669
670  </div>
671 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
672 _8c.html" id="SharpenImage">SharpenImage</a></h2>
673 <div class="doc-section">
674
675 <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>
676
677 <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>
678
679 <p>The format of the SharpenImage method is:</p>
680
681 <pre class="code">
682       Image *SharpenImage(const Image *image,const double radius,
683   const double sigma,ExceptionInfo *exception)
684       Image *SharpenImageChannel(const Image *image,const ChannelType channel,
685   const double radius,const double sigma,ExceptionInfo *exception)
686 </pre>
687
688 <p>A description of each parameter follows:</p>
689
690 <h5>image</h5>
691 <p>the image.</p>
692
693 <h5>channel</h5>
694 <p>the channel type.</p>
695
696 <h5>radius</h5>
697 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
698
699 <h5>sigma</h5>
700 <p>the standard deviation of the Laplacian, in pixels.</p>
701
702 <h5>exception</h5>
703 <p>return any errors or warnings in this structure.</p>
704
705  </div>
706 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
707 _8c.html" id="SpreadImage">SpreadImage</a></h2>
708 <div class="doc-section">
709
710 <p>SpreadImage() is a special effects method that randomly displaces each pixel in a block defined by the radius parameter.</p>
711
712 <p>The format of the SpreadImage method is:</p>
713
714 <pre class="code">
715   Image *SpreadImage(const Image *image,const double radius,
716     ExceptionInfo *exception)
717 </pre>
718
719 <p>A description of each parameter follows:</p>
720
721 <h5>image</h5>
722 <p>the image.</p>
723
724 <h5>radius</h5>
725 <p>Choose a random pixel in a neighborhood of this extent.</p>
726
727 <h5>exception</h5>
728 <p>return any errors or warnings in this structure.</p>
729
730  </div>
731 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/effect
732 _8c.html" id="UnsharpMaskImage">UnsharpMaskImage</a></h2>
733 <div class="doc-section">
734
735 <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>
736
737 <p>The format of the UnsharpMaskImage method is:</p>
738
739 <pre class="code">
740       Image *UnsharpMaskImage(const Image *image,const double radius,
741   const double sigma,const double amount,const double threshold,
742   ExceptionInfo *exception)
743       Image *UnsharpMaskImageChannel(const Image *image,
744   const ChannelType channel,const double radius,const double sigma,
745   const double amount,const double threshold,ExceptionInfo *exception)
746 </pre>
747
748 <p>A description of each parameter follows:</p>
749
750 <h5>image</h5>
751 <p>the image.</p>
752
753 <h5>channel</h5>
754 <p>the channel type.</p>
755
756 <h5>radius</h5>
757 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
758
759 <h5>sigma</h5>
760 <p>the standard deviation of the Gaussian, in pixels.</p>
761
762 <h5>amount</h5>
763 <p>the percentage of the difference between the original and the blur image that is added back into the original.</p>
764
765 <h5>threshold</h5>
766 <p>the threshold in pixels needed to apply the diffence amount.</p>
767
768 <h5>exception</h5>
769 <p>return any errors or warnings in this structure.</p>
770
771  </div>
772 \r
773 </div>\r
774 \r
775 <div id="linkbar">\r
776     <span id="linkbar-west">&nbsp;</span>\r
777     <span id="linkbar-center">\r
778       <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> &bull;\r
779       <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>\r
780     </span>\r
781     <span id="linkbar-east">&nbsp;</span>\r
782   </div>\r
783   <div class="footer">\r
784     <span id="footer-west">&copy; 1999-2011 ImageMagick Studio LLC</span>\r
785     <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>\r
786   </div>\r
787   <div style="clear: both; margin: 0; width: 100%; "></div>\r
788   <script type="text/javascript">\r
789     var _gaq = _gaq || [];\r
790     _gaq.push(['_setAccount', 'UA-17690367-1']);\r
791     _gaq.push(['_trackPageview']);\r
792 \r
793     (function() {\r
794       var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\r
795       ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\r
796       var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\r
797     })();\r
798   </script>\r
799 </body>\r
800 </html>\r