Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Comparing Images??

 
nik Aggarwal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic