This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
You can use the javax.imageio.ImageIO.read method to open JPEG files. That will create a BufferedImage object which has two "getRGB" methods for either getting an individual pixel's value, or all values of a rectangular area inside of it.
Joined: Mar 09, 2009
kannan vinayagam Duraiswamy thanks for your reply.
Ulf Dittmer, my images are in circular shape (iris images), will it work with circular images or not?
Joined: Mar 22, 2005
Well, JPEGs are rectangular by definition. It's up to your code to decide which parts of the image are interesting and which are not. But since you can retrieve RGB values for each individual pixel that's not an impediment.