Imagick::getImageHistogram


wizard apg

GETS the image histogram as an array of ImagickPixel objects.



<?php

array public Imagick::getImageHistogram();

?>

 


The function has no parameters.





This function returns an ARRAY on success.



  1 EXERCISE   

<?php

// Result of this exercise is long

$path PATH2IMGW '/psd/15.psd';

      
$img = new Imagick($path);
      
$data $img->getImageBlob();

       
$arr1 $img->getImageHistogram();
       
       echo 
'<pre>';
      
var_dump($arr1);
       echo 
'</pre>';
       
       
?>       

 RESULT   

Download the .psd file used in this exercise.
Click the below image:

apr