k4hvd77
asked on
JPGE Images
Hi Experts,
Could anybody tell me how to check if two Images are identically or not? (JPGE )
k4hvd
Could anybody tell me how to check if two Images are identically or not? (JPGE )
k4hvd
There are many algorithms for this purpos. it depends on your destination
(I mean your app usage) some of them compares RGB colors. it's a fast and trustable method. they compared the amount of each color not the pixeles and not the position of them. they also after getting the ture result from this test , they will test a little amount of pixels and their positions.
(I mean your app usage) some of them compares RGB colors. it's a fast and trustable method. they compared the amount of each color not the pixeles and not the position of them. they also after getting the ture result from this test , they will test a little amount of pixels and their positions.
ASKER
mbprogrammer,
I need a fast method! Could you post some codes how to do theat?
k4hvd77
I need a fast method! Could you post some codes how to do theat?
k4hvd77
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
have a look at here is good : http://www.catenary.com/howto/comparator.html
ASKER
thank you mbprogrammer ;)
k4hvd77
k4hvd77
uses
jpeg;
var
jpg_file : TJpegImage;
load the JPG image in this JpegImage and the convert to Bitmap using Bitmap.Assign(JPG_file) method. Now you have 2 Bitmaps which have Canvas propery and you can compare them.
The other way is to compare the size, the headers, etc. but this don't guarantee you anything.