The IMG library provides facilities for manipulating images in the
Starlink NDF format (see
http://www.starlink.rl.ac.uk/star/docs/sun33.htx/sun33.html). However,
other data formats (including TIFF) can be read by first converting
the TIFF file to NDF format. The starlink CONVERT package includes a
command called TIFF2NDF that can do this. In addition, the IMG library
can be configured so that it does the conversion automatically (by
invokling TIFF2NDF), making it apear as if IMG is reading the TIFF
file directly.
Note, TIFF2NDF is a script that uses commands from the netpbm package,
so you need to install netpbm before using TIFF2NDF.
Also note that NDF is a monochrome data format, so all colour images
will be converted to monochrome.
David
On 29/01/2008, Franklin Shaffer <[log in to unmask]> wrote:
> I simply would like to read images in bmp, jpg, OR tif into Fortran
> programs.
>
> Is there a simpler way to do this than IMG?
>
> I downloaded the Intel install file from
> http://starlink.jach.hawaii.edu/download/
> which took two hours, but I couldn't extract the file because it was
> corrupted.
>
> Thanks for any advice!
> Frank Shaffer
> USDOE National Energy Technology Laboratory
>
> ps: I am studying the physics of particle motion in energy conversion
> processes, primarily Integrated Combined Cycle Gasification.
> I have thousands of high speed video images of particle motion. I writing
> Fortran code to process and analyze the images.
> Yes, I'm a relic who still uses Fortran...
>
--
Note my change of e-mail address. Please send e-mail to
[log in to unmask] from now on.
|