array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'imagick.adaptivesharpenimage.php', 1 => 'Imagick::adaptiveSharpenImage', 2 => 'Adaptively sharpen the image', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.adaptiveresizeimage.php', 1 => 'Imagick::adaptiveResizeImage', ), 'next' => array ( 0 => 'imagick.adaptivethresholdimage.php', 1 => 'Imagick::adaptiveThresholdImage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/adaptivesharpenimage.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL imagick 2, PECL imagick 3)
Imagick::adaptiveSharpenImage — Adaptively sharpen the image
$radius
, float $sigma
, int $channel
= Imagick::CHANNEL_DEFAULT): boolAdaptively sharpen the image by sharpening more intensely near image edges and less intensely far from edges. Цей метод доступний, якщо Imagick зібраний з ImageMagick версії 6.2.9 або новішою.
radius
The radius of the Gaussian, in pixels, not counting the center pixel. Use 0 for auto-select.
sigma
The standard deviation of the Gaussian, in pixels.
channel
Константа каналу, дійсна для поточного режиму каналу. Для застосування її до
кількох каналів необхідно поєднати константи каналу побітовими
операторами. Стандартно — Imagick::CHANNEL_DEFAULT
. Див.
список констант каналу.
Повертає true
в разі успіху.
Приклад #1 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;
?>