Functions page: 7

Get image channel mean
Gets the mean and standard deviation of one or more image channels.
Image red channel mean:
Mean = 24879.5189333 Standard deviation = 19329.6731651


array getImageChannelMean ( int $channel )

<?php 
$im 
= new Imagick($input);
$mean $im->getImageChannelMean$im::CHANNEL_RED );
echo 
"Image red channel mean<br/>";
echo 
"Mean = ".$mean['mean']." Standard deviation = ".$mean[standardDeviation]."<br/>";
 
?>


Return value is an associative array with the keys "mean" and "standardDeviation".
Get image channel range
Gets the range for one or more image channels.
Image red channel range:
Minima = 0 Maxima = 65535


array getImageChannelRange ( int $channel )

<?php 
$im 
= new Imagick($input);
$range $im->getImageChannelRange$im::CHANNEL_RED );
echo 
"Image red channel range:<br/>";
echo 
"Minima = ".$range['minima']." Maxima = ".$range['maxima']."<br/>";
 
?>
Get image channel statistics
Returns statistics for each channel in the image.
None



The statistics include the channel depth, its minima and maxima, the mean, and the standard deviation.
Get image clip mask
Returns the image clip mask.
None



The clip mask is an Imagick object containing the clip mask.
Get image color map color
Returns the color of the specified colormap index.
None

Get image colors
Gets the number of unique colors in the image.
Image colors = 21436


int getImageColors ( void )

<?php 
$im 
= new Imagick($input);
$colors $im->getImageColors();
echo 
"<br>Image colors = $colors";
 
?>


$im = new Imagick($input); $colorspace = $im->getImageColorspace(); echo "
Image colorspace = $colorspace";
Get image colorspace
Gets the image colorspace.
Image colorspace = 1


int getImageColorspace ( void )

<?php 
$im 
= new Imagick($input);
$colorspace $im->getImageColorspace();
echo 
"<br>Image colorspace = $colorspace";
 
?>
Get image compose
Returns the composite operator associated with the image.
None

Get image compression
Gets the current image's compression type.
None

Get image delay
Gets the image delay.
None

Get image depth
Gets the image depth.
None

Get image dispose
Gets the image disposal method.
None

Get image distortion
Compares an image to a reconstructed image and returns the specified distortion metric.
None

Get image extrema
Gets the extrema for the image.
None



Returns an associative array with the keys "min" and "max".
Get image filename

None


string getImageFilename ( void )

<?php 
$im 
= new Imagick($input);
$filename $im->getImageFilename();
echo 
"<br>Image filename = $filename";
 
?>