in reply to compare images with perl 5.6 or 5.8
#!/usr/bin/perl use warnings; use strict; use Imager; my $img = Imager->new; $img->read(file=>'i1.png', type=>'png') or die "Cannot read: ", $img->errstr; my $img1 = Imager->new; $img1->read(file=>'i2.png', type=>'png') or die "Cannot read: ", $img1->errstr; my $out = $img->difference( other => $img1 ); $out->write(file=>"$0-diff.png", type=>'png') or die "Cannot write: ",$out->errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: compare images with perl 5.6 or 5.8
by kanegr (Acolyte) on Dec 29, 2008 at 15:33 UTC | |
by zentara (Cardinal) on Dec 29, 2008 at 15:38 UTC | |
|
Re^2: compare images with perl 5.6 or 5.8
by ravi.naga (Initiate) on Jan 15, 2010 at 07:33 UTC | |
by zentara (Cardinal) on Jan 15, 2010 at 11:44 UTC |