I am looking for several methods to compare two images to see how similar they are. I am currently planning to have interest as the “end result of the similarity index”. My outline plan looks something like this:
- The user selects 2 images for comparison.
- Using the button, images are compared using several different methods.
- In the end, each method will have a percentage next to it, indicating how similar the images are based on this method.
I've been reading a lot lately, and some of the materials that I read seem incredibly complex and advanced, and not for people like me, only with a year of Java experience. So far I read about:
The Fourier transform is im pretty confusing to implement in Java, but apparently the Java Advanced Imaging API has a class for it. Although I'm not sure how to convert the result to the actual result
SIFT algorithm - seems incredibly complex
Histograms - Perhaps the easiest of all mentioned so far
Pixel grabbing - It seems viable, but if there is a significant number of changes between two images, it does not look like it will produce any exact result. Maybe I'm wrong?
I also have the idea of preprocessing the image using a Sobel filter and then comparing it. The problem is the actual comparative part.
So yes, I am looking to see if anyone has any ideas for comparing images in Java. I hope that there are people here who previously did similar projects. I just want some input on viable comparison methods that are too difficult to implement in Java.
Thank you in advance
java comparison image-processing fft
Flynn Dec 01 '10 at 19:22 2010-12-01 19:22
source share