|
-
November 25th, 2006, 12:13 AM
#1
Image Analysis
Dear All,
I want to analyse a Tif Image pixel by pixel. But using the ImageIo available in Java I am not able to create a BufferedImage for the Tiff Image so that I can find the currespoding pixel array. So I converted the tif image to bmp/png and then I was able to find the pixel array. Now my problem is my entire code takes 8 seconds to complete in a Windows 2003 server m/c and 14 sec in a windows xp desktop m/c. The double for loop that I use to generate the double dimensional pixel array is taking 2 sec and the analysis loop (that takes the pixelarray elements one by one) is taking the same time . The rest of the code takes 4sec .
I need to optimize the code so that its total execution time should not exceed 2sec. Is this just a matter of code optimisation or can I have a better idea for analysing a Tiff Image other than examining it pixel by pixel?
Any help is highly appreciated.
Regards,
Arya.
-
November 29th, 2006, 09:58 AM
#2
Re: Image Analysis
What is the "analysis loop"? What kind of processing are you doing in that loop??
-
November 29th, 2006, 04:46 PM
#3
Re: Image Analysis
Image I/O has a package for working with Tiff.
http://java.sun.com/products/java-me...e-summary.html
Many image processing routines can be done with the existing library. Tell us what you are trying to achieve rather than requesting an answer to a solution you've already made your mind up to implement.
"The Chicken and Rice MRE is not a personal lubricant."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|