Dutch PHP Conference 2025 - Call For Papers

Imagick::getImageChannelDistortions

(PECL imagick 2 >= 2.3.0, PECL imagick 3)

Imagick::getImageChannelDistortionsGets channel distortions

Опис

public 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 Цей метод доступний, якщо Imagick зібраний з ImageMagick версії 6.4.4 або новішою.

Параметри

reference

Imagick object containing the reference image

metric

Refer to this list of metric type constants.

channel

Константа каналу, дійсна для поточного режиму каналу. Для застосування її до кількох каналів необхідно поєднати константи каналу побітовими операторами. Стандартно — Imagick::CHANNEL_DEFAULT. Див. список констант каналу.

Значення, що повертаються

Returns a float describing the channel distortion.

Помилки/виключення

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

add a note

User Contributed Notes

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