(PECL imagick 2 >= 2.3.0, PECL imagick 3)
Imagick::getImageChannelDistortions — Gets channel distortions
$reference
, int $metric
, int $channel
= Imagick::CHANNEL_DEFAULT): floatCompares one or more image channels of an image to a reconstructed image and returns the specified distortion metrics Questo metodo è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 o successive.
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. Per default è Imagick::CHANNEL_DEFAULT
. Fare riferimento a questa lista di costanti di canale
Returns a float describing the channel distortion.
Lancia una ImagickException in caso di errore.