CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Image Analysis

  1. #1
    Join Date
    May 2006
    Posts
    23

    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.

  2. #2
    Join Date
    Dec 2001
    Location
    Greece, Athens
    Posts
    1,015

    Re: Image Analysis

    What is the "analysis loop"? What kind of processing are you doing in that loop??
    Theodore
    Personal Web Page (some audio segmentation tools): www.di.uoa.gr/~tyiannak

  3. #3
    Join Date
    Apr 2003
    Location
    Los Angeles area
    Posts
    776

    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
  •  





Click Here to Expand Forum to Full Width

Featured