Php/docs/imagick.getimagedistortion

提供:Dev Guides
< Php
移動先:案内検索

Imagick::getImageDistortion

(PECL imagick 2, PECL imagick 3)

Imagick::getImageDistortionある画像と再構築した画像を比較する


説明

public Imagick::getImageDistortion ( MagickWand $reference , int $metric ) : float

ある画像と再構築した画像を比較し、 指定した歪み係数を返します。


パラメータ

reference
比較する Imagick オブジェクト。
metric
メトリック型定数 のいずれか。


返り値

その画像で使用する歪み係数 (あるいはその推測値) を返します。


エラー / 例外

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