Home > PHP > Function > > Imagick::getImageChannelDistortions()

Imagick::getImageChannelDistortions()

Imagick::getImageChannelDistortions - Gets channel distortions

Syntax

double Imagick::getImageChannelDistortions (Imagick $reference, int $metric, int $channel)

Arguments

  • reference - Imagick object containing the reference image
  • metric - Refer to this list of metric type constants.
  • channel - Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constantsusing bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT. Refer to this list of channel constants

Description

Compares one or more image channels of an image to a reconstructed image and returns the specified distortion metrics This method is available if Imagick has been compiled against ImageMagick version 6.4.4 or newer.

Version

PHP No version information available, might only be in SVN

Return value

Returns a double describing the channel distortion.