- i have got 2 photos
- i would like to compare them to see if they are the same
eg:
- the webcam is looking at an empty table and takes photo 1
- i placed a pile of books on the table and the webcam takes photo 2
- now, the output should be something like this:
"there is 21% difference"
i have done some research via google and seen things like imagemagicks magick++, libjpeg, cimg,...but i can't figure out what or how to do things.
This can be accomplished in opencv. It is what is called a histogram. Basically this finds similar areas in photo's based on a somewhat greyscale or color altered image. From there you can find changes between multiple frames of a photo. Here is a link. http://dasl.mem.drexel.edu/~noahKuntz/openCVTut9.html
the above link is somewhat different then what we were originally discussing but i figured you would find it useful later on. Here is the page on histograms. It finds similar areas between multiple images. This is getting in around the concept of photostitching also. http://dasl.mem.drexel.edu/~noahKuntz/openCVTut6.html
thanks. i have installed vc++ 2010 and opencv and i got everything working now.
but why do they say in every tuturial to include cv.h while it works as good if you dont include it??
it's really strange because i still need to include things like highgui.h if i want things working...