<?php
bool public Imagick::adaptiveSharpenImage(
float $radius,
float $sigma,
int $channel = Imagick::CHANNEL_DEFAULT
);
?>
AVAILABLE "imagick" CHANNEL STUDIED IN THIS TUTORIAL 1690 - ImageMagick 6.9.10-6 | ||
CHANNEL | ||
CONSTANT | VALUE | ABOUT |
imagick::CHANNEL_UNDEFINED | 0 | |
imagick::CHANNEL_RED | 1 | |
imagick::CHANNEL_GRAY | 1 | |
imagick::CHANNEL_CYAN | 1 | |
imagick::CHANNEL_GREEN | 2 | |
imagick::CHANNEL_MAGENTA | 2 | |
imagick::CHANNEL_BLUE | 4 | |
imagick::CHANNEL_YELLOW | 4 | |
imagick::CHANNEL_ALPHA | 8 | |
imagick::CHANNEL_OPACITY | 8 | |
imagick::CHANNEL_MATTE | 8 | |
imagick::CHANNEL_BLACK | 32 | |
imagick::CHANNEL_INDEX | 32 | |
imagick::CHANNEL_ALL | 134217727 | |
imagick::CHANNEL_DEFAULT | 134217719 | |
ed48 |
<?php
// Run several times
$img1 = new Imagick();
$jpgfn = PATH2IMGW . '/jpg/all.jpg';
$str1img = 'img/results/all521.jpg';
$img1->readImage($jpgfn);
$rd = mt_rand(0,10);
$sg = mt_rand(0,100);
$img1->adaptiveSharpenImage($rd,$sg,imagick::CHANNEL_BLUE);
$strg = $img1->getImageBlob();
$img = imagecreatefromstring($strg);
imagejpeg($img, $str1img);
echo basename($str1img); ?>
<br><br>
<img src="<?php echo $str1img; ?>"
alt="<?php echo $str1img; ?>"
title="<?php echo $str1img; ?>">