Hi all,
Please Help me by providing algorithm or link or library to compare two image
Regards,
vanitha P S
Hi all,
Please Help me by providing algorithm or link or library to compare two image
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vikram AgrawalRank #4,713 · 329 reputationPosted Nov 19, 2014, 2:58 AM EST
Hi Vanitha,
If at all you want to compare two images, first you need to convert those images into byte array and then you can compare both byte arrays.
Hope this will helpful to you
Mark This Answer is correct if it is really helpful to you
thanks
Vikram AgrawalRank #4,713 · 329 reputationPosted Nov 19, 2014, 3:14 AM EST
Well,
you can do this like following:
FileStream fs = new FileStream(ImageFileName, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
byte[] image = br.ReadBytes((int)fs.Length);
br.Close();
fs.Close();
now you can use this image as per your need
Thanks
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Nov 19, 2014, 2:10 AM EST
Hi Vanitha P.S
Read following links. It may be helpful for you.
http://stackoverflow.com/questions/843972/image-comparison-fast-algorithm
Vanitha P.S14 reputationPosted Nov 19, 2014, 3:05 AM EST
Hi,
How do I convert image in to array
Vanitha P.S14 reputationPosted Nov 19, 2014, 3:44 AM EST
Hi,
I want to know where the defect occurred in the existing image
while comparing the original image.
Peter Horin6 reputationPosted Dec 18, 2014, 8:48 AM EST
This will zero-out all identical pixels and leave different pixels with non-zero values.
The concept is explained in this Wikipedia article:
http://en.wikipedia.org/wiki/Bit_blit
You can implement this yourself using C# code like this article explains:
http://www.codersource.net/2010/02/02/image-processing-xor-xnor
Or you can use an image processing library such as this Combine function