Imagick::getImageChannelDistortions

(No version information available, might only be in Git)

Imagick::getImageChannelDistortionsGets channel distortions

Опис

float Imagick::getImageChannelDistortions ( Imagick $reference , int $metric [, int $channel = Imagick::CHANNEL_DEFAULT ] )

Compares one or more image channels of an image to a reconstructed image and returns the specified distortion metrics Цей метод доступний якщо Imagick був зібраний з версією ImageMagick 6.4.4 або новішою.

Параметри

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 distortion.

Помилки/Винятки

Кидає ImagickException в разі помилки.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top