This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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??
Similar Threads
Need help - Create an application to loop through folder of images & insert to db
Displaying image problem
Saving image on server in directory structure vs in database
How can i display image .bmp in a JSP !!! Thanks !!!
server directories