Manuel PHP

Imagick::compareImages

(No version information available, might be only in CVS)

Imagick::compareImagesCompares an image to a reconstructed image

Description

array Imagick::compareImages ( Imagick $compare , int $metric )
Avertissement

Cette fonction n'est pas documentée et seule la liste des arguments est disponible.

Returns an array containing a reconstructed image and the difference between images.

Liste de paramètres

compare

An image to compare to.

metric

Provide a valid metric type constant. Refer to this list of metric constants.

Valeurs de retour

Returns TRUE on success.

Erreurs / Exceptions

Throws ImagickException on error.

Exemples

Exemple #1 Using Imagick::compareImages():

Compare images and display the reconstructed image

  1. <?php
  2.  
  3. $image1 = new imagick("image1.png");  
  4. $image2 = new imagick("image2.png");  
  5.  
  6. $result = $image1->compareImages($image2, Imagick::METRIC_MEANSQUAREERROR);  
  7. $result[0]->setImageFormat("png");  
  8.  
  9. header("Content-Type: image/png");  
  10. echo $result[0];  
  11.  
  12. ?> 


Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique