Imagick::selectiveBlurImage

(No version information available, might only be in Git)

Imagick::selectiveBlurImageDescription

Opis

public Imagick::selectiveBlurImage ( float $radius , float $sigma , float $threshold [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool

Selectively blur an image within a contrast threshold. It is similar to the unsharpen mask that sharpens everything with contrast above a certain threshold.

Parametry

radius

sigma

threshold

channel

Dostarcz stałą kanału, która jest poprawna dla Twojego trybu kanału. Aby zastosować więcej niż jeden kanał, połącz stałe kanału przy użyciu operatorów bitowych. Domyślnie: Imagick::CHANNEL_DEFAULT. Zapoznaj się z listą stałych kanałów

Zwracane wartości

Zwraca TRUE w przypadku sukcesu.

Przykłady

Przykład #1 Imagick::selectiveBlurImage()

<?php
function selectiveBlurImage($imagePath$radius$sigma$threshold$channel) {
    
$imagick = new \Imagick(realpath($imagePath));
    
$imagick->selectiveBlurImage($radius$sigma$threshold$channel);
    
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