Thread diffrence of two images (2 answers)
Opened by mary at 2010-06-11 08:32

murphy
 2010-06-11 14:05
#138248 #138248
User since
2004-07-19
1776 Artikel
HausmeisterIn
[Homepage]
user image
Without test data it is difficult to try to reproduce this problem.

Apart from that, I would advise you to use easier tools for a job like this. Something as simple as
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;

use PDL;
use PDL::IO::Pic;

my ($img0) = PDL->rpic('image0.png')
  or die "Couldn't read image: $!";
my ($img1) = PDL->rpic('image1.png')
  or die "Couldn't read image: $!";

my $diff = $img1 - $img0;

$diff->wpic('diff.png')
  or die "Couldn't write image: $!";

should do the job!
When C++ is your hammer, every problem looks like your thumb.

View full thread diffrence of two images