DJ Mike's Tutorials: PHP

ImageMagick Functions

^

Imagick::adaptiveThresholdImage

Description:
bool Imagick::adaptiveThresholdImage ( int $width , int $height , int $offset )

Selects an individual threshold for each pixel based on the range of intensity values in its local neighborhood. This allows for thresholding of an image whose global intensity histogram doesn't contain distinctive peaks.

Parameters:
width: Width of the local neighborhood.
height: Height of the local neighborhood.
offset: The mean offset
Return Values
Returns TRUE on success.

Example

<?php
header
("Content-type: image/jpeg");
$image = new Imagick("opossum.jpg"); 
$image->adaptiveThresholdImage10,10);
echo 
$image;
?> 


^


Created by DJ Mike from Santa Barbara

DJ Mike


Dance Away Santa Barbara's Home Page
<a href="http://www.statcounter.com/" target="_blank"> <img src="http://c5.statcounter.com/counter.php?sc_project=1321035&java=0&security=da2193dc" alt="counter free hit invisible" border="0" /></a>