I want to know whether it's possible to comapre images using asp.net
irrespective of their format,size and result should be in percenatge
format like 80%-90% like that...
Iam comparing two similar images taken from a webcam but when i compared it pixel by pixel ,there is difference in pixels so my program showing those are two DIFFERENT IMAGES
SO I WANT TO GET THE RESULT IN PERCENTAGE FORMAT PLESE HELP ME ON THIS
Loading
BenPosted Sep 7, 2009, 7:13 AM
one function returns the difference between the colors of two pixels, as a percentage.
I think that could work.
Didn't do much testing on it though.
Pramod Kumar NandagiriPosted Sep 8, 2009, 9:52 PM
I got that(i instead of j) and u r code helped me a lot thanku very much
BenPosted Sep 8, 2009, 10:44 AM
Tested the function with a few images while looking for the bug and the values it returns seems reliable alright.
Let me know if you have other problems with this.
Edit : One more thing, the resizing of the image can cause the loss of some pixels in the process, so you won't get 100% if you compare the same image with two different sizes, but it stays around 95-100 %. Depending on what you will use this function for, and the kind of image, you should do some testing and find out what percentage is OK for you.
Pramod Kumar NandagiriPosted Sep 8, 2009, 3:56 AM
i tested the code which u sent, it is giving the Argument out of range exception with the following error,I an trying to solve it please tellme if u have any idea about this error
Parameter must be positive and < Height.
Parameter name: y
Pramod Kumar NandagiriPosted Sep 7, 2009, 6:27 AM
i have already seen the webpage which u sent any way thax verymuch
but what i want is i take photos of a tube light when it is on and off if i compare the photos that both photos with light is on the risult should be IMAGES ARE SAME
IF I COMPARE the photos like one photo with light is on and another with light is off Then result should be IMAGES ARE DIFFERENT
This we won't get with image.getpixel(); method when we compare like this the result is always IMAGES ARE DIFFRENT , IT gives putput IMAGES ARE SAME only the same photo is compared with it self with diff name
So to get our required type of output i think the process is different from pixel comparision it may be comparing the colors in the image or comparing RGB value I NEED HELP ON THIS TYPE OF COMPARISON OF IMAGES
IT SHOULD RESULT "IMAGES ARE SAME" when both photos consists light is on and those photos are taken at different time
Roei BarPosted Sep 6, 2009, 2:31 PM
http://www.codeproject.com/KB/GDI-plus/comparingimages.aspx