File: effect.html

package info (click to toggle)
imagemagick 6%3A6.0.6.2-2.9
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 33,284 kB
  • ctags: 14,844
  • sloc: ansic: 190,790; cpp: 17,203; sh: 8,740; perl: 4,190; makefile: 1,740; tcl: 459
file content (681 lines) | stat: -rw-r--r-- 29,023 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>effect - Add an Effect</title>
<link rel="stylesheet" type="text/css" href="../magick.css">
</head>

<body marginheight="1" marginwidth="1" topmargin="1" leftmargin="1">
<a name="top"></a> 
<table border="0" cellpadding="0" cellspacing="0" summary="Masthead" width="100%">
<tbody>
<tr>
<td bgcolor="#003399" width="25%" height="118" background="../../images/background.gif"><a href="http://www.imagemagick.org/"><img src="../../images/script.gif" width="278" height="118" border="0" alt="" /></a></td>
<td bgcolor="#003399" width="60%" height="118" background="../../images/background.gif"><a href="http://www.networkeleven.com/direct.php?magick_all"><img src="../../images/promote.png" border="0" width="186" height="52" vspace="29" alt="Powered by NetworkEleven" /></a></td>
<td bgcolor="#003399" width="114" height="118" align="right"><img src="../../images/sprite.png" width="114" height="118" alt="" /></td>
<td bgcolor="#003399" width="114" height="118" align="right"><a href="http://www.imagemagick.net"><img src="../../images/logo.png" width="114" height="118" border="0" alt="ImageMagick logo" /></a></td>
</tr></tbody></table>
<table align="left" border="0" cellpadding="2" cellspacing="2" summary="Navigation buttons" width="20%">
<tr>
<td>
<form target="_self" action="../../index.html"><input type="submit" title="ImageMagick Home" value=" Home" style="background-color: #1947A3; background-image:url('../../../images/background.gif'); color:#fbc713; font-weight:bold"></form></td>
<td>
<form target="_self" action="../../www/apis.html"><input type="submit" title="ImageMagick API" value=" API " style="background-color: #1947A3; background-image:url('../../../images/background.gif'); color:#fbc713; font-weight:bold"></form></td>
<td>
<form target="_self" action="../../www/archives.html"><input type="submit" title="ImageMagick Download" value="Download" style="background-color: #1947A3; background-image:url('../../../images/background.gif'); color:#fbc713; font-weight:bold"></form></td></tr></table>
<div align="right" style="margin-top:3px; padding-right:4px">
<form action="http://studio.imagemagick.org/Sage/scripts/Sage.cgi"><input type="TEXT" name="query" size="32" maxlength="255"> <input type="SUBMIT" name="sa" value="Search" style="background-color: #1947A3; background-image:url('../../../images/background.gif'); bgcolor:#003399; color:#fbc713; font-weight:bold"></form></div>
<table align="left" border="0" cellpadding="10" cellspacing="0" style="margin-top:-17px" width="100%">
<tr>
<td>


<P><a name="__index__"></a></P>
<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#function_descriptions">FUNCTION DESCRIPTIONS</a></li>
	<ul>

		<li><a href="#adaptivethresholdimage">AdaptiveThresholdImage</a></li>
		<li><a href="#addnoiseimage">AddNoiseImage</a></li>
		<li><a href="#bilevelimagechannel">BilevelImageChannel</a></li>
		<li><a href="#blackthresholdimage">BlackThresholdImage</a></li>
		<li><a href="#blurimagechannel">BlurImageChannel</a></li>
		<li><a href="#despeckleimage">DespeckleImage</a></li>
		<li><a href="#edgeimage">EdgeImage</a></li>
		<li><a href="#embossimage">EmbossImage</a></li>
		<li><a href="#gaussianblurimagechannel">GaussianBlurImageChannel</a></li>
		<li><a href="#medianfilterimage">MedianFilterImage</a></li>
		<li><a href="#motionblurimage">MotionBlurImage</a></li>
		<li><a href="#previewimage">PreviewImage</a></li>
		<li><a href="#radialblurimage">RadialBlurImage</a></li>
		<li><a href="#randomthresholdimagechannel">RandomThresholdImageChannel</a></li>
		<li><a href="#reducenoiseimage">ReduceNoiseImage</a></li>
		<li><a href="#shadeimage">ShadeImage</a></li>
		<li><a href="#sharpenimagechannel">SharpenImageChannel</a></li>
		<li><a href="#spreadimage">SpreadImage</a></li>
		<li><a href="#unsharpmaskimagechannel">UnsharpMaskImageChannel</a></li>
		<li><a href="#whitethresholdimage">WhiteThresholdImage</a></li>
	</ul>

</ul>
<!-- INDEX END -->

<hr />
<P>
</P>
<h1><a name="name">NAME</a></h1>
<P>effect - Add an Effect</P>
<P>
</P>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<P>Image * <strong>AdaptiveThresholdImage</strong>( const Image *image, const unsigned long width, const unsigned long height, const long offset, ExceptionInfo *exception );</P>
<P>Image * <strong>AddNoiseImage</strong>( const Image *image, const NoiseType noise_type, ExceptionInfo *exception );</P>
<P>MagickBooleanType  <strong>BilevelImageChannel</strong>( Image *image, const ChannelType channel, const double threshold );</P>
<P>MagickBooleanType  <strong>BlackThresholdImage</strong>( Image *image, const char *threshold );</P>
<P>Image * <strong>BlurImageChannel</strong>( const Image *image, const ChannelType channel, const double radius, const double sigma, ExceptionInfo *exception );</P>
<P>Image * <strong>DespeckleImage</strong>( const Image *image, ExceptionInfo *exception );</P>
<P>Image * <strong>EdgeImage</strong>( const Image *image, const double radius, ExceptionInfo *exception );</P>
<P>Image * <strong>EmbossImage</strong>( const Image *image, const double radius, const double sigma, ExceptionInfo *exception );</P>
<P>Image * <strong>GaussianBlurImageChannel</strong>( const Image *image, const ChannelType channel, const double radius, const double sigma, ExceptionInfo *exception );</P>
<P>Image * <strong>MedianFilterImage</strong>( const Image *image, const double radius, ExceptionInfo *exception );</P>
<P>Image * <strong>MotionBlurImage</strong>( const Image *image, const double radius, const double sigma, const double angle, ExceptionInfo *exception );</P>
<P>Image * <strong>RadialBlurImage</strong>( const Image *image, const double angle, ExceptionInfo *exception );</P>
<P>MagickBooleanType  <strong>RandomThresholdImageChannel</strong>( Image *image, const ChannelType channel, const char *thresholds, ExceptionInfo *exception );</P>
<P>Image * <strong>ReduceNoiseImage</strong>( const Image *image, const double radius, ExceptionInfo *exception );</P>
<P>Image * <strong>ShadeImage</strong>( const Image *image, const MagickBooleanType gray, const double azimuth, const double elevation, ExceptionInfo *exception );</P>
<P>Image * <strong>SharpenImageChannel</strong>( const Image *image, const ChannelType channel, const double radius, const double sigma, ExceptionInfo *exception );</P>
<P>Image * <strong>SpreadImage</strong>( const Image *image, const double radius, ExceptionInfo *exception );</P>
<P>Image * <strong>UnsharpMaskImageChannel</strong>( const Image *image, const ChannelType channel, const double radius, const double sigma, const double amount, const double threshold, ExceptionInfo *exception );</P>
<P>MagickBooleanType  <strong>WhiteThresholdImage</strong>( Image *image, const char *threshold );</P>
<P>
</P>
<hr />
<h1><a name="function_descriptions">FUNCTION DESCRIPTIONS</a></h1>
<P>
</P>
<h2><a name="adaptivethresholdimage">AdaptiveThresholdImage</a></h2>
<blockquote>AdaptiveThresholdImage() selects an individual threshold for each pixel based on the range of intensity values in its local neighborhood. This allows for thresholding of an image whose global intensity histogram doesn't contain distinctive peaks. </blockquote><P>The format of the AdaptiveThresholdImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *AdaptiveThresholdImage ( const <A HREF="types.html#Image">Image</A> *image, const unsigned long width, const unsigned long height, const long offset, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong><a name="item_o_image_3a">image:</a></strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong><a name="item_o_width_3a">width:</a></strong><br />
</dt>
<DD>
The width of the local neighborhood.
</dd>
<P></P>
<dt><strong><a name="item_o_height_3a">height:</a></strong><br />
</dt>
<DD>
The height of the local neighborhood.
</dd>
<P></P>
<dt><strong><a name="item_o_offset_3a">offset:</a></strong><br />
</dt>
<DD>
The mean offset.
</dd>
<P></P>
<dt><strong><a name="item_o_exception_3a">exception:</a></strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="addnoiseimage">AddNoiseImage</a></h2>
<blockquote>AddNoiseImage() adds random noise to the image. </blockquote><P>The format of the AddNoiseImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *AddNoiseImage ( const <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#NoiseType">NoiseType</A> noise_type, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong><a name="item_o_noise_type_3a">noise_type:</a></strong><br />
</dt>
<DD>
The type of noise: Uniform, Gaussian, Multiplicative, Impulse, Laplacian, or Poisson.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="bilevelimagechannel">BilevelImageChannel</a></h2>
<blockquote>BilevelImageChannel() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image. </blockquote><P>The format of the BilevelImageChannel method is:</P>
<blockquote>MagickBooleanType BilevelImageChannel ( <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#ChannelType">ChannelType</A> channel, const double threshold ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong><a name="item_o_channel_3a">channel:</a></strong><br />
</dt>
<DD>
The channel type.
</dd>
<P></P>
<dt><strong><a name="item_o_threshold_3a">threshold:</a></strong><br />
</dt>
<DD>
define the threshold values.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="blackthresholdimage">BlackThresholdImage</a></h2>
<blockquote>BlackThresholdImage() is like ThresholdImage ( ) but forces all pixels below the threshold into black while leaving all pixels above the threshold unchanged. </blockquote><P>The format of the BlackThresholdImage method is:</P>
<blockquote>MagickBooleanType BlackThresholdImage ( <A HREF="types.html#Image">Image</A> *image, const char *threshold ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>threshold:</strong><br />
</dt>
<DD>
Define the threshold value
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="blurimagechannel">BlurImageChannel</a></h2>
<blockquote>BlurImageChannel() 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 BlurImageChannel ( ) selects a suitable radius for you. </blockquote><blockquote>BlurImageChannel() differs from GaussianImageChannel ( ) in that it uses a separable kernel which is faster but mathematically equivalent to the non-separable kernel. </blockquote><P>The format of the BlurImageChannel method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *BlurImageChannel ( const <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#ChannelType">ChannelType</A> channel, const double radius, const double sigma, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>channel:</strong><br />
</dt>
<DD>
The channel type.
</dd>
<P></P>
<dt><strong><a name="item_o_radius_3a">radius:</a></strong><br />
</dt>
<DD>
The radius of the Gaussian, in pixels, not counting the center pixel.
</dd>
<P></P>
<dt><strong><a name="item_o_sigma_3a">sigma:</a></strong><br />
</dt>
<DD>
The standard deviation of the Gaussian, in pixels.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="despeckleimage">DespeckleImage</a></h2>
<blockquote>DespeckleImage() reduces the speckle noise in an image while perserving the edges of the original image. </blockquote><P>The format of the DespeckleImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *DespeckleImage ( const <A HREF="types.html#Image">Image</A> *image, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="edgeimage">EdgeImage</a></h2>
<blockquote>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. </blockquote><P>The format of the EdgeImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *EdgeImage ( const <A HREF="types.html#Image">Image</A> *image, const double radius, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>radius:</strong><br />
</dt>
<DD>
the radius of the pixel neighborhood.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="embossimage">EmbossImage</a></h2>
<blockquote>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. </blockquote><P>The format of the EmbossImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *EmbossImage ( const <A HREF="types.html#Image">Image</A> *image, const double radius, const double sigma, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>radius:</strong><br />
</dt>
<DD>
the radius of the pixel neighborhood.
</dd>
<P></P>
<dt><strong>sigma:</strong><br />
</dt>
<DD>
The standard deviation of the Gaussian, in pixels.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="gaussianblurimagechannel">GaussianBlurImageChannel</a></h2>
<blockquote>GaussianBlurImageChannel() 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 </blockquote><P>The format of the GaussianBlurImageChannel method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *GaussianBlurImageChannel ( const <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#ChannelType">ChannelType</A> channel, const double radius, const double sigma, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>radius:</strong><br />
</dt>
<DD>
the radius of the Gaussian, in pixels, not counting the center pixel.
</dd>
<P></P>
<dt><strong>channel:</strong><br />
</dt>
<DD>
The channel type.
</dd>
<P></P>
<dt><strong>sigma:</strong><br />
</dt>
<DD>
the standard deviation of the Gaussian, in pixels.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="medianfilterimage">MedianFilterImage</a></h2>
<blockquote>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. </blockquote><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>
<P>The format of the MedianFilterImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *MedianFilterImage ( const <A HREF="types.html#Image">Image</A> *image, const double radius, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>radius:</strong><br />
</dt>
<DD>
The radius of the pixel neighborhood.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="motionblurimage">MotionBlurImage</a></h2>
<blockquote>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. </blockquote><P>Andrew Protano contributed this effect.</P>
<P>The format of the MotionBlurImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *MotionBlurImage ( const <A HREF="types.html#Image">Image</A> *image, const double radius, const double sigma, const double angle, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>radius:</strong><br />
</dt>
<DD>
The radius of the Gaussian, in pixels, not counting the center pixel.
</dd>
<P></P>
<dt><strong>sigma:</strong><br />
</dt>
<DD>
The standard deviation of the Gaussian, in pixels.
</dd>
<P></P>
<dt><strong><a name="item_o_angle_3a">angle:</a></strong><br />
</dt>
<DD>
Apply the effect along this angle.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="previewimage">PreviewImage</a></h2>
<blockquote>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. </blockquote><P>The format of the PreviewImages method is:</P>
<pre>
    Image *PreviewImages(const Image *image,const PreviewType preview,
      ExceptionInfo *exception)</pre>
<P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong><a name="item_o_preview_3a">preview:</a></strong><br />
</dt>
<DD>
The image processing operation.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="radialblurimage">RadialBlurImage</a></h2>
<blockquote>RadialBlurImage() applies a radial blur to the image. </blockquote><P>Andrew Protano contributed this effect.</P>
<P>The format of the RadialBlurImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *RadialBlurImage ( const <A HREF="types.html#Image">Image</A> *image, const double angle, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>angle:</strong><br />
</dt>
<DD>
The angle of the radial blur.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="randomthresholdimagechannel">RandomThresholdImageChannel</a></h2>
<blockquote>RandomThresholdImageChannel() changes the value of individual pixels based on the intensity of each pixel compared to a random threshold. The result is a low-contrast, two color image. </blockquote><P>The format of the RandomThresholdImageChannel method is:</P>
<blockquote>MagickBooleanType RandomThresholdImageChannel ( <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#ChannelType">ChannelType</A> channel, const char *thresholds, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>channel:</strong><br />
</dt>
<DD>
The channel or channels to be thresholded.
</dd>
<P></P>
<dt><strong><a name="item_o_thresholds_3a">thresholds:</a></strong><br />
</dt>
<DD>
a geometry string containing low,high thresholds.  If the string contains 2x2, 3x3, or 4x4, an ordered dither of order 2, 3, or 4 is performed instead.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="reducenoiseimage">ReduceNoiseImage</a></h2>
<blockquote>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. </blockquote><P>The format of the ReduceNoiseImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *ReduceNoiseImage ( const <A HREF="types.html#Image">Image</A> *image, const double radius, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>radius:</strong><br />
</dt>
<DD>
The radius of the pixel neighborhood.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="shadeimage">ShadeImage</a></h2>
<blockquote>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. </blockquote><P>The format of the ShadeImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *ShadeImage ( const <A HREF="types.html#Image">Image</A> *image, const MagickBooleanType gray, const double azimuth, const double elevation, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong><a name="item_o_gray_3a">gray:</a></strong><br />
</dt>
<DD>
A value other than zero shades the intensity of each pixel.
</dd>
<P></P>
<dt><strong><a name="item_o_azimuth_2c_elevation_3a">azimuth, elevation:</a></strong><br />
</dt>
<DD>
Define the light source direction.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="sharpenimagechannel">SharpenImageChannel</a></h2>
<blockquote>SharpenImageChannel() 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 SharpenImage ( ) selects a suitable radius for you. </blockquote><P>Using a separable kernel would be faster, but the negative weights cancel out on the corners of the kernel producing often undesirable ringing inthe filtered result; this can be avoided by using a 2D gaussian shaped image sharpening kernel instead.</P>
<P>The format of the SharpenImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *SharpenImageChannel ( const <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#ChannelType">ChannelType</A> channel, const double radius, const double sigma, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>channel:</strong><br />
</dt>
<DD>
The channel type.
</dd>
<P></P>
<dt><strong>radius:</strong><br />
</dt>
<DD>
The radius of the Gaussian, in pixels, not counting the center pixel.
</dd>
<P></P>
<dt><strong>sigma:</strong><br />
</dt>
<DD>
The standard deviation of the Laplacian, in pixels.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="spreadimage">SpreadImage</a></h2>
<blockquote>SpreadImage() is a special effects method that randomly displaces each pixel in a block defined by the radius parameter. </blockquote><P>The format of the SpreadImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *SpreadImage ( const <A HREF="types.html#Image">Image</A> *image, const double radius, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>radius:</strong><br />
</dt>
<DD>
Choose a random pixel in a neighborhood of this extent.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="unsharpmaskimagechannel">UnsharpMaskImageChannel</a></h2>
<P><code>UnsharpMaskImage()</code> 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 <code>UnsharpMaskImage()</code> selects a suitable radius for you.</P>
<P>The format of the UnsharpMaskImage method is:</P>
<blockquote><A HREF="types.html#Image">Image</A> *UnsharpMaskImageChannel ( const <A HREF="types.html#Image">Image</A> *image, const <A HREF="types.html#ChannelType">ChannelType</A> channel, const double radius, const double sigma, const double amount, const double threshold, <A HREF="types.html#ExceptionInfo">ExceptionInfo</A> *exception ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>channel:</strong><br />
</dt>
<DD>
The channel type.
</dd>
<P></P>
<dt><strong>radius:</strong><br />
</dt>
<DD>
The radius of the Gaussian, in pixels, not counting the center pixel.
</dd>
<P></P>
<dt><strong>sigma:</strong><br />
</dt>
<DD>
The standard deviation of the Gaussian, in pixels.
</dd>
<P></P>
<dt><strong><a name="item_o_amount_3a">amount:</a></strong><br />
</dt>
<DD>
The percentage of the difference between the original and the blur image that is added back into the original.
</dd>
<P></P>
<dt><strong>threshold:</strong><br />
</dt>
<DD>
The threshold in pixels needed to apply the diffence amount.
</dd>
<P></P>
<dt><strong>exception:</strong><br />
</dt>
<DD>
Return any errors or warnings in this structure.
</dd>
<P></P></dl>
<P>
</P>
<h2><a name="whitethresholdimage">WhiteThresholdImage</a></h2>
<blockquote>WhiteThresholdImage() is like ThresholdImage ( ) but forces all pixels above the threshold into white while leaving all pixels below the threshold unchanged. </blockquote><P>The format of the WhiteThresholdImage method is:</P>
<blockquote>MagickBooleanType WhiteThresholdImage ( <A HREF="types.html#Image">Image</A> *image, const char *threshold ); </blockquote><P>A description of each parameter follows:</P>
<dl>
<dt><strong>image:</strong><br />
</dt>
<DD>
The image.
</dd>
<P></P>
<dt><strong>threshold:</strong><br />
</dt>
<DD>
Define the threshold value
</dd>
</dl>


<HR>

<a href="#top"><img src="../../../images/top.gif" border=0 width=42 height=42 align="right" alt="Top of page"></a>
<form action="http://studio.imagemagick.org/magick/" style="margin-top:5px">
<input type="submit" title="Help!" value="Help!" style="background-image:url('../../../images/background.gif'); color:#fbc713; font-weight:bold">
  <small>&quot;Image manipulation software that works like magick&quot;</small>
</form></td>
</tr></table>

</body>


</html>