- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anybody know how to read a tif graphics file into an array using Compaq Visual Fortran so that the pixel data can be accessed?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this link, which is a compilation of
links to implementation details for many different file formats...
http://www.wotsit.org/
links to implementation details for many different file formats...
http://www.wotsit.org/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know how to read a tif file pixel by pixel but you could try converting it to a bitmap, then load it in fortran using LOADIMAGE, then save it from the screen to an array using GETIMAGE. But I believe the bit depth on the screen must be the same as that of the tif file.
To convert the file from tif to bmp you can download an activex control from www.sourceforge.net/projects/freeimage. You must use the Fortran Module Wizzard with "Type Library containing COM interface information" to generate the interfaces. Perhaps this control might let you read the file pixel by pixel but I'm not sure, I just use it to convert from bmp files to jpg or png.
To convert the file from tif to bmp you can download an activex control from www.sourceforge.net/projects/freeimage. You must use the Fortran Module Wizzard with "Type Library containing COM interface information" to generate the interfaces. Perhaps this control might let you read the file pixel by pixel but I'm not sure, I just use it to convert from bmp files to jpg or png.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page