php8.5
Home/ Manual/ imagick / imagick/ Imagick::getImageChannelDistortions

Imagick::getImageChannelDistortions

PHP function Edit on GitHub ✎

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

Gets channel distortions

Description

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 0x644

Parameters

reference

Imagick object containing the reference image

metric

Refer to this list of metric type constants.

channel

Channel

Return Values

Returns a float describing the channel distortion.

Errors/Exceptions

Throws

Source: reference/imagick/imagick/getimagechanneldistortions.xml · from the official PHP manual (php/doc-en)