Comparing images.... Visual C++ (MFC)
-
Can someone help me my problem? How can do i compare two images?? what i need is just a simple comparison... E.g. After both images are being compared, a message will say either "correct" or "wrong" that's all.... :) Thanks, Best Regards....
You can load them into a DC and use GetPixel, but it's much faster if you can make them a DIBSEction, and then you can access the image data as a byte array and compare it.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
Can someone help me my problem? How can do i compare two images?? what i need is just a simple comparison... E.g. After both images are being compared, a message will say either "correct" or "wrong" that's all.... :) Thanks, Best Regards....
-
Can someone help me my problem? How can do i compare two images?? what i need is just a simple comparison... E.g. After both images are being compared, a message will say either "correct" or "wrong" that's all.... :) Thanks, Best Regards....
I think i see an article in http://www.codeguru.com[^] for compare two images,yesterday?i want to send you address this article but i dont know its name.
_**
**_
WhiteSky
-
The easiest way is to use GetDIBits() on each bitmap and do a memcmp() on the image data.
You may be right
I may be crazy
-- Billy Joel --Within you lies the power for good, use it!!!
can you send me the code for comparing 2 images