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
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
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
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
62 <div class="westbar">
\r
65 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
67 <div class="sep"></div>
\r
69 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
72 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
75 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
78 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
80 <div class="sep"></div>
\r
82 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
85 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
88 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
91 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
94 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
97 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
100 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
103 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
106 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
108 <div class="sep"></div>
\r
110 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
113 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
116 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
119 <a title="Resources" href="../../www/resources.html">Resources</a>
122 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
125 <a title="Download" href="../../www/download.html">Download</a>
127 <div class="sep"></div>
\r
129 <a title="Search" href="../../www/search.html">Search</a>
131 <div class="sep"></div>
\r
133 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
136 <a title="Site Map: Links" href="../../www/links.html">Links</a>
138 <div class="sep"></div>
\r
140 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
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 -->
146 <div class="sponsor">
147 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
149 <div class="sponsor">
150 <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee-->
152 <div class="sponsor">
153 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
155 <div class="sponsor">
156 <a title="Sponsor: Webdesign" href="http://www.renehornig.com/">Webdesign</a><!-- 20111001000240 -->
162 <div class="eastbar">
\r
163 <script type="text/javascript">
\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
171 <script type="text/javascript"
\r
172 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
180 <p class="navigation-index">[<a href="#AdaptiveBlurImage">AdaptiveBlurImage</a> • <a href="#AdaptiveSharpenImage">AdaptiveSharpenImage</a> • <a href="#BlurImage">BlurImage</a> • <a href="#ConvolveImage">ConvolveImage</a> • <a href="#DespeckleImage">DespeckleImage</a> • <a href="#EdgeImage">EdgeImage</a> • <a href="#EmbossImage">EmbossImage</a> • <a href="#FilterImage">FilterImage</a> • <a href="#GaussianBlurImage">GaussianBlurImage</a> • <a href="#MedianFilterImage">MedianFilterImage</a> • <a href="#MotionBlurImage">MotionBlurImage</a> • <a href="#PreviewImage">PreviewImage</a> • <a href="#RadialBlurImage">RadialBlurImage</a> • <a href="#ReduceNoiseImage">ReduceNoiseImage</a> • <a href="#SelectiveBlurImage">SelectiveBlurImage</a> • <a href="#ShadeImage">ShadeImage</a> • <a href="#SharpenImage">SharpenImage</a> • <a href="#SpreadImage">SpreadImage</a> • <a href="#UnsharpMaskImage">UnsharpMaskImage</a>]</p>
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">
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>
188 <p>The format of the AdaptiveBlurImage method is:</p>
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)
198 <p>A description of each parameter follows:</p>
204 <p>the channel type.</p>
207 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
210 <p>the standard deviation of the Laplacian, in pixels.</p>
213 <p>return any errors or warnings in this structure.</p>
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">
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>
222 <p>The format of the AdaptiveSharpenImage method is:</p>
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)
232 <p>A description of each parameter follows:</p>
238 <p>the channel type.</p>
241 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
244 <p>the standard deviation of the Laplacian, in pixels.</p>
247 <p>return any errors or warnings in this structure.</p>
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">
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>
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>
258 <p>The format of the BlurImage method is:</p>
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)
267 <p>A description of each parameter follows:</p>
273 <p>the channel type.</p>
276 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
279 <p>the standard deviation of the Gaussian, in pixels.</p>
282 <p>return any errors or warnings in this structure.</p>
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">
289 <p>ConvolveImage() applies a custom convolution kernel to the image.</p>
291 <p>The format of the ConvolveImage method is:</p>
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)
300 <p>A description of each parameter follows:</p>
306 <p>the channel type.</p>
309 <p>the number of columns and rows in the filter kernel.</p>
312 <p>An array of double representing the convolution kernel.</p>
315 <p>return any errors or warnings in this structure.</p>
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">
322 <p>DespeckleImage() reduces the speckle noise in an image while perserving the edges of the original image.</p>
324 <p>The format of the DespeckleImage method is:</p>
327 Image *DespeckleImage(const Image *image,ExceptionInfo *exception)
330 <p>A description of each parameter follows:</p>
336 <p>return any errors or warnings in this structure.</p>
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">
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>
345 <p>The format of the EdgeImage method is:</p>
348 Image *EdgeImage(const Image *image,const double radius,
349 ExceptionInfo *exception)
352 <p>A description of each parameter follows:</p>
358 <p>the radius of the pixel neighborhood.</p>
361 <p>return any errors or warnings in this structure.</p>
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">
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>
370 <p>The format of the EmbossImage method is:</p>
373 Image *EmbossImage(const Image *image,const double radius,
374 const double sigma,ExceptionInfo *exception)
377 <p>A description of each parameter follows:</p>
383 <p>the radius of the pixel neighborhood.</p>
386 <p>the standard deviation of the Gaussian, in pixels.</p>
389 <p>return any errors or warnings in this structure.</p>
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">
396 <p>FilterImage() applies a custom convolution kernel to the image.</p>
398 <p>The format of the FilterImage method is:</p>
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)
407 <p>A description of each parameter follows:</p>
413 <p>the channel type.</p>
416 <p>the filtering kernel.</p>
419 <p>return any errors or warnings in this structure.</p>
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">
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>
428 <p>The format of the GaussianBlurImage method is:</p>
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)
438 <p>A description of each parameter follows:</p>
444 <p>the channel type.</p>
447 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
450 <p>the standard deviation of the Gaussian, in pixels.</p>
453 <p>return any errors or warnings in this structure.</p>
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">
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>
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>
464 <p>The format of the MedianFilterImage method is:</p>
467 Image *MedianFilterImage(const Image *image,const double radius,
468 ExceptionInfo *exception)
471 <p>A description of each parameter follows:</p>
477 <p>the radius of the pixel neighborhood.</p>
480 <p>return any errors or warnings in this structure.</p>
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">
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>
489 <p>Andrew Protano contributed this effect.</p>
491 <p>The format of the MotionBlurImage method is:</p>
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)
501 <p>A description of each parameter follows:</p>
507 <p>the channel type.</p>
510 <p>the radius of the Gaussian, in pixels, not counting the center</p>
512 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
515 <p>the standard deviation of the Gaussian, in pixels.</p>
518 <p>Apply the effect along this angle.</p>
521 <p>return any errors or warnings in this structure.</p>
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">
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>
530 <p>The format of the PreviewImages method is:</p>
533 Image *PreviewImages(const Image *image,const PreviewType preview,
534 ExceptionInfo *exception)
537 <p>A description of each parameter follows:</p>
543 <p>the image processing operation.</p>
546 <p>return any errors or warnings in this structure.</p>
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">
553 <p>RadialBlurImage() applies a radial blur to the image.</p>
555 <p>Andrew Protano contributed this effect.</p>
557 <p>The format of the RadialBlurImage method is:</p>
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)
566 <p>A description of each parameter follows:</p>
572 <p>the channel type.</p>
575 <p>the angle of the radial blur.</p>
578 <p>return any errors or warnings in this structure.</p>
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">
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>
587 <p>The format of the ReduceNoiseImage method is:</p>
590 Image *ReduceNoiseImage(const Image *image,const double radius,
591 ExceptionInfo *exception)
594 <p>A description of each parameter follows:</p>
600 <p>the radius of the pixel neighborhood.</p>
603 <p>return any errors or warnings in this structure.</p>
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">
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>
612 <p>The format of the SelectiveBlurImage method is:</p>
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)
622 <p>A description of each parameter follows:</p>
628 <p>the channel type.</p>
631 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
634 <p>the standard deviation of the Gaussian, in pixels.</p>
637 <p>only pixels within this contrast threshold are included in the blur operation.</p>
640 <p>return any errors or warnings in this structure.</p>
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">
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>
649 <p>The format of the ShadeImage method is:</p>
652 Image *ShadeImage(const Image *image,const MagickBooleanType gray,
653 const double azimuth,const double elevation,ExceptionInfo *exception)
656 <p>A description of each parameter follows:</p>
662 <p>A value other than zero shades the intensity of each pixel.</p>
664 <h5>azimuth, elevation</h5>
665 <p>Define the light source direction.</p>
668 <p>return any errors or warnings in this structure.</p>
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">
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>
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>
679 <p>The format of the SharpenImage method is:</p>
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)
688 <p>A description of each parameter follows:</p>
694 <p>the channel type.</p>
697 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
700 <p>the standard deviation of the Laplacian, in pixels.</p>
703 <p>return any errors or warnings in this structure.</p>
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">
710 <p>SpreadImage() is a special effects method that randomly displaces each pixel in a block defined by the radius parameter.</p>
712 <p>The format of the SpreadImage method is:</p>
715 Image *SpreadImage(const Image *image,const double radius,
716 ExceptionInfo *exception)
719 <p>A description of each parameter follows:</p>
725 <p>Choose a random pixel in a neighborhood of this extent.</p>
728 <p>return any errors or warnings in this structure.</p>
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">
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>
737 <p>The format of the UnsharpMaskImage method is:</p>
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)
748 <p>A description of each parameter follows:</p>
754 <p>the channel type.</p>
757 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
760 <p>the standard deviation of the Gaussian, in pixels.</p>
763 <p>the percentage of the difference between the original and the blur image that is added back into the original.</p>
766 <p>the threshold in pixels needed to apply the diffence amount.</p>
769 <p>return any errors or warnings in this structure.</p>
776 <span id="linkbar-west"> </span>
\r
777 <span id="linkbar-center">
\r
778 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
779 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
781 <span id="linkbar-east"> </span>
\r
783 <div class="footer">
\r
784 <span id="footer-west">© 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
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
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