= 2.3.0, PECL imagick 3)Imagick::getImageChannelDistortions — Gets channel distortions說(shuō)明public Ima">
(PECL imagick 2 >= 2.3.0, PECL imagick 3)
Imagick::getImageChannelDistortions — Gets channel distortions
$reference
, int $metric
, int $channel
= Imagick::CHANNEL_DEFAULT): floatCompares one or more image channels of an image to a reconstructed image and returns the specified distortion metrics 此方法在Imagick基于ImageMagick 6.4.4以上版本編譯時(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ò)誤時(shí)拋出 ImagickException。