wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Comparing Images??" Watch "Comparing Images??" New topic
Author

Comparing Images??

nik Aggarwal
Greenhorn

Joined: Dec 31, 2010
Posts: 2
Hi,
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: http://aspose.com/file-tools
 
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