Hi Yogi
Here is a simple test I did using the demo:
\Demos\ImageAnalysis\ImagesDiff\ImagesDiff.dpr
procedure TMainForm.test1Click(Sender: TObject);
begin
Tile;
image1.imageenview1.IO.LoadFromFile('D:\src.jpg');
image2.imageenview1.IO.LoadFromFile('D:\out-2perc.jpg');
image1.ImageEnView1.Fit;
image2.ImageEnView1.Fit;
PerformCompare();
// Stretch result so easier to see
diffs.ImageEnView1.Proc.AutoImageEnhance3( 1.0 );
end;
Here are the two source images (second one has white text drawn at 2% opacity by merging a text layer):
Here is the difference view:
Of course, being a JPEG there are encoding artifacts. If you use PNG the difference is much more crisp:
This is just a simple example. You could code a better solution by iterating through the scanlines and doing a more targeted comparison.
Nigel
Xequte Software
www.imageen.com