CakeFest 2024: The Official CakePHP Conference

Imagick::getImageChannelDistortions

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

Imagick::getImageChannelDistortionsGets channel distortions

Açıklama

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 Bu yöntem, derleme sırasında ImageMagick kütüphanesinin 6.4.4 veya sonraki bir sürümü kuruluysa kullanılabilir.

Bağımsız Değişkenler

reference

Imagick object containing the reference image

metric

Refer to this list of metric type constants.

channel

Normalde kanal türü sabitlerinden biridir, ancak bitsel işleçler kullanılarak birden fazla kanal belirtilebilir. Imagick::CHANNEL_DEFAULT öntanımlıdır.

Dönen Değerler

Returns a float describing the channel distortion.

Hatalar/İstisnalar

Hata durumunda bir ImagickException istisnası oluşur.

add a note

User Contributed Notes

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