File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Comparing Images?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Comparing Images??" Watch "Comparing Images??" New topic

Comparing Images??

nik Aggarwal

Joined: Dec 31, 2010
Posts: 2
I have some images in database and i want that when user take a picture from his/her camera, after that image captured by the user will be compared against the images present in the database. But i don't know how to do compare two images using J2ME.
Please help me.......
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
If you can get the image into Java, the Image class has a getRGB() method that returns an array of an image's pixel values which you could use to compare. You can also call getWidth() and getHeight() to get width and height of an image.

That's about the limit of what you can compare. There might be something in Advanced Multimedia Supplements (Jsr 234), but I don't know if it would be helpful.
I agree. Here's the link:
subject: Comparing Images??