DJ Mike's Tutorials: PHP

Imagick Functions

^

Imagick::reduceNoiseImage

Description:
bool Imagick::reduceNoiseImage ( float $radius )

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 Imagick::reduceNoiseImage() selects a suitable radius for you.
Parameters:
radius
Return Values
Returns TRUE on success.

Example

<?php 
header
('Content-type: image/jpeg'); 
$image = new Imagick("opossum.jpg"); 
$image->reduceNoiseimage(1); 
echo 
$image
?>


^


Created by DJ Mike from Santa Barbara

DJ Mike


Dance Away Santa Barbara's Home Page
<a href="http://www.statcounter.com/" target="_blank"> <img src="http://c5.statcounter.com/counter.php?sc_project=1321035&java=0&security=da2193dc" alt="counter free hit invisible" border="0" /></a>