The Imagick class
PHP Manual

Imagick::getImageChannelDistortions

()

Imagick::getImageChannelDistortionsGets channel distortions

Описание

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

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.

Параметри

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

Връщани стойности

Returns a double describing the channel distrortion.

Грешки/Изключения

Хвърля ImagickException при грешка.


The Imagick class
PHP Manual