The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Image::Compare::IMAGE - Compares two images and creates a third image representing their differences.

OVERVIEW

See the docs for Image::Compare for details on how to use this module. Further documentation is meant for those modifying or subclassing this comparator. See the documentation in Image::Compare::Comparator for general information about making your own comparator subclasses.

METHODS

setup($image1, $image2)

Sets up the image which will be used to store the differential data.

accumulate(\@pixel1, \@pixel2, $x, $y)

This method is called for each pixel in the two images to be compared. The difference between each pair of pictures is saved as color data in the internal picture representation. This method never short-circuits; when this comparator is used, all pixels are compared, every time.

get_result()

Returns the internal image.

AUTHOR

Copyright 2008 Avi Finkel <avi@finkel.org>

This package is free software and is provided "as is" without express or implied warranty. It may be used, redistributed and/or modified under the terms of the Perl Artistic License (see http://www.perl.com/perl/misc/Artistic.html)