PHP | Imagick adaptiveThresholdImage() Function Improve Improve Like Article Like Save Share Report The Imagick::adaptiveThresholdImage() function is an inbuilt function in PHP which is used to select a threshold for each pixel based on intensity values in its local neighborhood. This function allows to thresholding of an image whose global intensity histogram doesn’t contain distinctive peaks. Syntax: bool Imagick::adaptiveThresholdImage ( $width, $height, $offset ) Parameters: This function accepts three parameters as mentioned above and described below: $width: This parameter is used to set the width of local neighborhood. $height: This parameter is used to set the height of local neighborhood. $offset: This parameter is used to set mean offset. Return Value: This function returns TRUE on success. Below program illustrate the Imagick::adaptiveThresholdImage() function in PHP: Original Image: Program: <?php // require_once('path/to/vendor/autoload.php'); header('Content-type: image/png'); $image = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); $image->adaptiveThresholdImage(1024, 73, 0.625); echo $image; ?> Output: Reference: http://php.net/manual/en/imagick.adaptivethresholdimage.php Last Updated : 26 Aug, 2019 Like Article Save Article Previous PHP | Imagick setPage() Function Next PHP | Imagick adaptiveResizeImage() Function Share your thoughts in the comments Add Your Comment Please Login to comment... Similar Reads PHP | Imagick floodFillPaintImage() Function PHP | Imagick adaptiveSharpenImage() Function PHP | Imagick flopImage() Function PHP | Imagick setImageExtent() Function PHP | Imagick getImageWhitePoint() Function PHP | Imagick getCompressionQuality() Function PHP | Imagick clear() Function PHP | Imagick annotateImage() Function PHP | Imagick adaptiveResizeImage() Function PHP | Imagick adaptiveBlurImage() Function Like sarthak_ishu11 Follow Article Tags : PHP-function PHP-Imagick PHP Web Technologies