How can I (as fast as possible) determine if two bitmaps are the same, by value, and not by reference? Is there any fast way of doing it?
What if the comparison doesn’t need to be very precise?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can check the dimensions first – and abort the comparison if they differ.
For the comparison itself you can use a variaty of ways:
very fast but possibly wrong… can be used as a first check, if it differs they are dfferent… otherwise further checking needed
not so fast but rather precise
XOR the image content… abort when the first difference comes up…