PHP 8.4.1 Released!

Imagick::getImageChannelDistortions

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

Imagick::getImageChannelDistortionsGets channel distortions

Descrizione

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 Questo metodo è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 o successive.

Elenco dei parametri

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

Valori restituiti

Returns a float describing the channel distortion.

Errori/Eccezioni

Lancia una ImagickException in caso di errore.

add a note

User Contributed Notes

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