Home > PHP > Function > > Imagick::getImageDistortion()

Imagick::getImageDistortion()

Imagick::getImageDistortion - Compares an image to a reconstructed image

Syntax

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

Arguments

  • reference - Imagick object to compare to.
  • metric - One of the metric type constants.

Description

Compares an image to a reconstructed image and returns the specified distortion metric.

Version

PHP PECL imagick 2.0.0

Return value

Returns the distortion metric used on the image (or the best guess thereof). Throw an ImagickExceptionon error.