PHP Conference Japan 2024

Imagick::compareImageChannels

(PECL imagick 2,PECL imagick 3)

Imagick::compareImageChannels傳回一或多個影像的差異

說明

public Imagick::compareImageChannels(Imagick $image, int $channelType, int $metricType): array

比較一或多個影像,並傳回差異影像。

參數

image

包含要比較之影像的 Imagick 物件。

channelType

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

metricType

度量類型常數之一。

傳回值

new_wanddistortion 組成的陣列。

錯誤/例外

發生錯誤時拋出 ImagickException。

新增筆記

使用者貢獻筆記

此頁面沒有使用者貢獻的筆記。
To Top