downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::thumbnailImage> <Imagick::textureImage
[edit] Last updated: Wed, 22 May 2013

view this page in

Imagick::thresholdImage

(PECL imagick 2.0.0)

Imagick::thresholdImage閾値にもとづいて個々のピクセルの値を変更する

説明

bool Imagick::thresholdImage ( float $threshold [, int $channel = Imagick::CHANNEL_ALL ] )

個々のピクセルの輝度を閾値と比較し、その色を変更します。 変換結果は、コントラストの高い 2 色の画像となります。

パラメータ

threshold

channel

返り値

成功した場合に TRUE を返します。



add a note add a note User Contributed Notes Imagick::thresholdImage - [1 notes]
up
0
php t traction dot de
10 months ago
getQuantumRange() can be handy here:

<?php
$i
= new Imagick($imageFile);
$max = $i->getQuantumRange();
$max = $max["quantumRangeLong"];
$i->thresholdImage(0.77 * $max);
?>

 
show source | credits | sitemap | contact | advertising | mirror sites