File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Algorithm to compare two JPEGs... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Algorithm to compare two JPEGs..." Watch "Algorithm to compare two JPEGs..." New topic
Author

Algorithm to compare two JPEGs...

Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

I want to compare* two images, in Java code. The only way i can think of, is take every pixel of an image and compare its value to the one from the other. I have a few questions though.

1. Is there some better way of doing this(already)?
2. Should this routine be written in Java Or would I be better off writing this in C and then calling native code from Java?

Please help.
Thanks.

*[by compare, i mean, to check if a human will see the two images as different/same]


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

Image Comparision is not as simple as i first thought..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Algorithm to compare two JPEGs...