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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Peter HorinPosted Dec 18, 2014, 1:48 PM
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
Vanitha P.SPosted Nov 19, 2014, 8:44 AM
Hi,
I want to know where the defect occurred in the existing image
while comparing the original image.
Vikram AgrawalPosted Nov 19, 2014, 8:14 AM
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
Vanitha P.SPosted Nov 19, 2014, 8:05 AM
Hi,
How do I convert image in to array
Vikram AgrawalPosted Nov 19, 2014, 7:58 AM
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
Manish Kumar ChoudharyPosted Nov 19, 2014, 7:10 AM
Hi Vanitha P.S
Read following links. It may be helpful for you.
http://stackoverflow.com/questions/843972/image-comparison-fast-algorithm