-
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.
-
Re: Image Analysis
What is the "analysis loop"? What kind of processing are you doing in that loop??
-
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.