Image::Compare::EXACT - Compare two images for exact equivalence.


Image-Compare documentation Contained in the Image-Compare distribution.

Index


Code Index:

NAME

Top

Image::Compare::EXACT - Compare two images for exact equivalence.

OVERVIEW

Top

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

Top

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

Override's Image::Compare:THRESHOLD's constructor and forces the threshold to be 0. Otherwise, this comparator is exactly the same as that.

AUTHOR

Top

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)


Image-Compare documentation Contained in the Image-Compare distribution.

package Image::Compare::EXACT;

use warnings;
use strict;

use base qw/Image::Compare::THRESHOLD/;

sub new {
	my $proto = shift;
	my $class = ref($proto) || $proto;
	my $self = Image::Compare::THRESHOLD->new(@_);
	$self->{args} = 0;
	bless($self, $class);
	return $self;
}

1;

__END__