PHP Conference Japan 2024

Imagick::getImageChannelDistortion

(PECL imagick 2, PECL imagick 3)

Imagick::getImageChannelDistortion比較影像的影像通道與重建的影像

說明

public Imagick::getImageChannelDistortion(Imagick $reference, int $channel, int $metric): float

比較影像的一個或多個影像通道與重建的影像,並傳回指定的失真度量。

參數

reference

要比較的 Imagick 物件。

channel

提供任何對您的通道模式有效的通道常數。要套用至多個通道,請使用位元運算子合併通道型別常數。請參閱通道常數的此列表。

metric

其中一個度量型別常數

傳回值

成功時傳回 true

錯誤/例外

錯誤時會擲回 ImagickException。

新增筆記

使用者提供的筆記

此頁面沒有使用者提供的筆記。
To Top