Be aware that this function is extremely CPU intensive.
(PECL imagick 2, PECL imagick 3)
Imagick::adaptiveBlurImage β Adds adaptive blur filter to image
$radius
, float $sigma
, int $channel
= Imagick::CHANNEL_DEFAULT): boolAdds an adaptive blur filter to image. The intensity of an adaptive blur depends is dramatically decreased at edge of the image, whereas a standard blur is uniform across the image. Π¦Π΅ΠΉ ΠΌΠ΅ΡΠΎΠ΄ Π΄ΠΎΡΡΡΠΏΠ½ΠΈΠΉ, ΡΠΊΡΠΎ Imagick Π·ΡΠ±ΡΠ°Π½ΠΈΠΉ Π· ImageMagick Π²Π΅ΡΡΡΡ 6.2.9 Π°Π±ΠΎ Π½ΠΎΠ²ΡΡΠΎΡ.
radius
The radius of the Gaussian, in pixels, not counting the center pixel. Provide a value of 0 and the radius will be chosen automagically.
sigma
The standard deviation of the Gaussian, in pixels.
channel
ΠΠΎΠ½ΡΡΠ°Π½ΡΠ° ΠΊΠ°Π½Π°Π»Ρ, Π΄ΡΠΉΡΠ½Π° Π΄Π»Ρ ΠΏΠΎΡΠΎΡΠ½ΠΎΠ³ΠΎ ΡΠ΅ΠΆΠΈΠΌΡ ΠΊΠ°Π½Π°Π»Ρ. ΠΠ»Ρ Π·Π°ΡΡΠΎΡΡΠ²Π°Π½Π½Ρ ΡΡ Π΄ΠΎ
ΠΊΡΠ»ΡΠΊΠΎΡ
ΠΊΠ°Π½Π°Π»ΡΠ² Π½Π΅ΠΎΠ±Ρ
ΡΠ΄Π½ΠΎ ΠΏΠΎΡΠ΄Π½Π°ΡΠΈ ΠΊΠΎΠ½ΡΡΠ°Π½ΡΠΈ ΠΊΠ°Π½Π°Π»Ρ ΠΏΠΎΠ±ΡΡΠΎΠ²ΠΈΠΌΠΈ
ΠΎΠΏΠ΅ΡΠ°ΡΠΎΡΠ°ΠΌΠΈ. Π‘ΡΠ°Π½Π΄Π°ΡΡΠ½ΠΎ β Imagick::CHANNEL_DEFAULT
. ΠΠΈΠ².
ΡΠΏΠΈΡΠΎΠΊ ΠΊΠΎΠ½ΡΡΠ°Π½Ρ ΠΊΠ°Π½Π°Π»Ρ.
ΠΠΎΠ²Π΅ΡΡΠ°Ρ true
Π² ΡΠ°Π·Ρ ΡΡΠΏΡΡ
Ρ.
ΠΠΈΠ΄Π°Ρ ImagickException Π² ΡΠ°Π·Ρ ΠΏΠΎΠΌΠΈΠ»ΠΊΠΈ.
ΠΡΠΈΠΊΠ»Π°Π΄ #1 Using Imagick::adaptiveBlurImage():
Adaptively blur an image, then display to the browser.
<?php
header('Content-type: image/jpeg');
$image = new Imagick('test.jpg');
$image->adaptiveBlurImage(5,3);
echo $image;
?>
ΠΠΎΠ΄Π°Π½ΠΈΠΉ Π²ΠΈΡΠ΅ ΠΏΡΠΈΠΊΠ»Π°Π΄ Π²ΠΈΠ²Π΅Π΄Π΅ ΡΠΎΡΡ ΡΡ ΠΎΠΆΠ΅ Π½Π°: