PHP 8.3.4 Released!

Imagick::getImageChannelDistortions

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

Imagick::getImageChannelDistortionsGets channel distortions

Descrição

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 Este método estará disponível se a extensão Imagick tiver sido compilada com a ImageMagick versão 6.4.4 ou superior.

Parâmetros

reference

Imagick object containing the reference image

metric

Refer to this list of metric type constants.

channel

Fornece qualquer constante de canal que seja válida no modo de canal. Para aplicar a mais de um canal, constantes de canal devem ser combinadas usando operadores bit a bit. O padrão é Imagick::CHANNEL_DEFAULT. Consulte esta lista de constantes de canal

Valor Retornado

Returns a float describing the channel distortion.

Erros/Exceções

Lança uma exceção ImagickException em caso de erro.

add a note

User Contributed Notes

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