(PECL imagick 2, PECL imagick 3)
Imagick::getImageChannelDistortion — 比較影像的影像通道與重建的影像
$reference
$channel
$metric
比較影像的一個或多個影像通道與重建的影像,並傳回指定的失真度量。
reference
要比較的 Imagick 物件。
channel
提供任何對您的通道模式有效的通道常數。要套用至多個通道,請使用位元運算子合併通道型別常數。請參閱通道常數的此列表。
metric
其中一個度量型別常數。
成功時傳回 true。
true
錯誤時會擲回 ImagickException。