Imagick::getImageChannelDistortions
PHP function
Edit on GitHub ✎
(PECL imagick 2 >= 2.3.0, PECL imagick 3)
Gets channel distortions
Description
Imagick::getImageChannelDistortions(Imagick $reference, int $metric, int $channel = Imagick::CHANNEL_DEFAULT): float
Compares one or more image channels of an image to a reconstructed image and returns the specified distortion metrics 0x644
Parameters
referenceImagick object containing the reference image
metricRefer to this list of metric type constants.
channelChannel
Return Values
Returns a float describing the channel distortion.
Errors/Exceptions
Throws