PDA

View Full Version : Image comparison



bhajionpc
06-20-2003, 12:25 PM
I am writing an image comparision tool, which does a pixel-by-pixel comparison of RGBA values of the 2 images.

Can I add some intelligence to my code so that I can compare images, which were generated using different graphics cards?

Any suggestions would really help.

Korval
06-20-2003, 12:42 PM
Consider that the OpenGL spec does not require pixel-equivalence. As such, you're going to have to have some tolerance value associated with the comparison function.

V-man
06-20-2003, 01:54 PM
Does this have something to do with checking for cheating in the drivers? http://www.opengl.org/discussion_boards/ubb/smile.gif

singularity-charge
06-21-2003, 09:13 AM
You can combine a tolerance-based algorithm with an LCS length algorithm. (LCS = Longest common substring)

However, LCS requires a much greater computational power.