= 2.3.0, PECL imagick 3)Imagick::getImageChannelDistortions — Gets channel distortions說明public Ima">

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以上版本編譯時(shí)可用。

參數(shù)

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. 缺省為Imagick::CHANNEL_DEFAULT. 參考此 通道常數(shù)列表

返回值

Returns a double describing the channel distortion.

錯(cuò)誤/異常

錯(cuò)誤時(shí)拋出 ImagickException。