IntelliJ Java IDE
The moose likes Java Micro Edition and the fly likes Comparing Images?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply 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.
 
 
subject: Comparing Images??
 
Threads others viewed
Need help - Create an application to loop through folder of images & insert to db
Saving image on server in directory structure vs in database
How can i display image .bmp in a JSP !!! Thanks !!!
server directories
Displaying image problem
MyEclipse, The Clear Choice