Imagick::medianFilterImage

(PECL imagick 2, PECL imagick 3)

Imagick::medianFilterImageApplies a digital filter

Avviso

This function has been DEPRECATED as of Imagick 3.4.4. Relying on this function is highly discouraged.

Descrizione

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

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.

Elenco dei parametri

radius

The radius of the pixel neighborhood.

Valori restituiti

Restituisce true in caso di successo.

Errori/Eccezioni

Lancia una ImagickException in caso di errore.

Esempi

Example #1 Imagick::medianFilterImage()

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

?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top