Login   Register  
PHP Classes

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Kai Ming Choi  >  Images Comparison Class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Images Comparison Class
Compare two images to check if they are identical
Author: By
Last change: png
Date: 4 years ago
Size: 816 bytes


Class file image Download
//ImagesComparison Class Example
require "ImagesComparison.class.php";

//two images with exactly same width and height
$compare = new ImagesComparison("a.png""b.png");

//compare two images(can skip)

//give each part of contiguous difference a number(can skip)

//check the consistency of two images
//var_dump($compare->consistency());    //(it will send a header, so skip it because of printImage)

//fill in the difference with certain color: array(red, green, blue), else, random color for each contiguous part

//circle the difference with certain color: array(red, green, blue), else, red; offset => make the circle bigger

//print the image to the browser or a file