Imagick::getImageChannelDistortions
Gets channel distortions
Description
public float Imagick::getImageChannelDistortions(Imagick $reference
, int $metric
, int $channel
= Imagick::CHANNEL_DEFAULT)
Parameters
-
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 constants using bitwise operators. Defaults to Imagick::CHANNEL_DEFAULT
. Refer to this list of channel constants
Return Values
Returns a float describing the channel distortion.
Errors/Exceptions
Throws ImagickException on error.