array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'imagick.reducenoiseimage.php', 1 => 'Imagick::reduceNoiseImage', 2 => 'Smooths the contours of an image', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.recolorimage.php', 1 => 'Imagick::recolorImage', ), 'next' => array ( 0 => 'imagick.remapimage.php', 1 => 'Imagick::remapImage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/reducenoiseimage.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::reduceNoiseImage

(PECL imagick 2, PECL imagick 3)

Imagick::reduceNoiseImageSmooths the contours of an image

Увага

Ця функція ЗАСТАРІЛА починаючи з Imagick 3.4.4. Вкрай не рекомендується на неї покладатися.

Опис

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

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.

Параметри

radius

Значення, що повертаються

Повертає true в разі успіху.

Помилки/виключення

Кидає ImagickException в разі помилки.

Приклади

Приклад #1 Imagick::reduceNoiseImage()

<?php
function reduceNoiseImage($imagePath, $reduceNoise) {
$imagick = new \Imagick(realpath($imagePath));
@
$imagick->reduceNoiseImage($reduceNoise);
header("Content-Type: image/jpg");
echo
$imagick->getImageBlob();
}

?>