Imagick::adaptiveSharpenImage
(PECL imagick 2, PECL imagick 3)
Adaptively sharpen the image
Description
Adaptively sharpen the image by sharpening more intensely near image edges and less intensely far from edges. 0x629
Parameters
radiusThe radius of the Gaussian, in pixels, not counting the center pixel. Use 0 for auto-select.
sigmaThe standard deviation of the Gaussian, in pixels.
channelChannel
Return Values
Success
Examples
A Imagick::adaptiveSharpenImage() example
Adaptively sharpen the image with radius 2 and sigma 1.
<?php
try {
$image = new Imagick('image.png');
$image->adaptiveSharpenImage(2,1);
} catch(ImagickException $e) {
echo 'Error: ' , $e->getMessage();
die();
}
header('Content-type: image/png');
echo $image;
?>