Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do you determine how similar two images are?


The easy way the Average difference in pixel values.

Slightly harder psnr. http://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio

Harder again... ssim http://en.wikipedia.org/wiki/Structural_similarity

There isn't any real solution to automating similarity as a human sees it. Humans are tricky.



He answers this on the FAQ linked at the top. http://rogeralsing.com/2008/12/09/genetic-programming-mona-l...

He just loops over the whole image and does a pixel-by-pixel comparison, taking the difference between each of the R, G, and B channels and summing them all.


Check the FAQ. It's pixel by pixel comparison.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: