Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Algorithm to compare two JPEGs...

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic