Imagick クラス
PHP Manual

Imagick::getImageChannelDistortions

(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう)

Imagick::getImageChannelDistortionsGets channel distortions

説明

double Imagick::getImageChannelDistortions ( Imagick $reference , int $metric , int $channel )

Compares one or more image channels of an image to a reconstructed image and returns the specified distortion metrics このメソッドは、ImageMagick バージョン 6.4.4 以降で Imagick をコンパイルした場合に使用可能です。

パラメータ

reference

Imagick object containing the reference image

metric

Refer to this list of metric type constants.

channel

そのモードで有効なチャネル定数を指定します。 複数のチャネルを適用するには、チャネル定数 をビット演算子で組み合わせます。デフォルトは Imagick::CHANNEL_DEFAULT です。 チャネル定数 の一覧を参照ください。

返り値

Returns a double describing the channel distortion.

エラー / 例外

エラー時に ImagickException をスローします。


Imagick クラス
PHP Manual