View Full Version : Image comparison

06-20-2003, 11:25 AM
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.

06-20-2003, 11:42 AM
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.

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

06-21-2003, 08: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.