• Post Reply Bookmark Topic Watch Topic
  • New Topic

Photo imaging questions  RSS feed

 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Photo imaging questions :
How do pictures get converted to bytecode? How are pictures read to construct images?
Is it possible in Java to create "matching" software (for faces, fingerprints, etc)? It would take 2 or more images and compare them? How would someone create this?

Thanks,
cc11rocks
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please find below answers to your questions.

1. Pictures are not converted to bytecodes!
2. You should use the java.awt.image.* packages
3. It is possible to create a image matching software in Java
4. Yes
5. You should use the java.awt.image.* packages
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best way to read images is to use the methods in javax.imageio.ImageIO. That will provide you with a BufferedImage object from which you can get the pixel values directyl, or via a Raster object.

As to comparing two images, what is your precise definition of "similar images"? This is likely to be tricky to implement.
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done picture imports before by what you've said suggestions (as in, done it BEFORE you told me so I'm not a total image n00b). I meant the low level stuff on how it works. Maybe, a generalized (not too much detail) version on how it gets done. If not, it's no biggie. By "similar images", I mean photos that are not the same. They might both be face shots, but they wouldn't be the exact same picture. Maybe both would show the same details, but re-positioned and it would just be a different picture. For using the picture part, I could just use the same picture to start off with. Would I just compare the images, and if so many pixels matched, it would be a match or something? What if the picture had different lighting, etc etc.
Thanks,
cc11rocks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you asked how to convert pictures (by which you presumably meant image files) to byte[] (which is what you presumably meant by "bytecode") and how to read pictures, so that's what got answered.

As to image comparisons, that can't be answered in a forum posts - that's an unsolved research topic.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!