473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Reading TIFF file (low level)

Does anyone how any clue on how to read a TIFF file directly in a
filestream?
I know I can load the complete image into memory, but since this a 800+ mb
image, I usually get a "Out of memory" error.
Basically, all I have to do, is look up some certain pixel-values, so I
would guess that its just a matter of seeking to the correct bytes and parse
them to a color.

Can anyone give me some pointers on how to calculate the correct position in
the file, where I can get a certain pixel-value?
I'm complete off on this one, so any ideas would do (except the approach of
splitting the image up in several smaller images).

Regards
/Morten Nielsen
Nov 16 '05 #1
2 5128
There's a link to the pdf for the TIFF specification from this site:
http://whatis.techtarget.com/definit...214180,00.html
--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/
"Morten Nielsen" <sp**@iter.dk> wrote in message
news:c5**********@news.net.uni-c.dk...
Does anyone how any clue on how to read a TIFF file directly in a
filestream?
I know I can load the complete image into memory, but since this a 800+ mb
image, I usually get a "Out of memory" error.
Basically, all I have to do, is look up some certain pixel-values, so I
would guess that its just a matter of seeking to the correct bytes and parse them to a color.

Can anyone give me some pointers on how to calculate the correct position in the file, where I can get a certain pixel-value?
I'm complete off on this one, so any ideas would do (except the approach of splitting the image up in several smaller images).

Regards
/Morten Nielsen

Nov 16 '05 #2
There's a link to the pdf for the TIFF specification from this site:
http://whatis.techtarget.com/definit...214180,00.html
--
Mike Mayer, C# MVP
mi**@mag37.com
http://www.mag37.com/csharp/
"Morten Nielsen" <sp**@iter.dk> wrote in message
news:c5**********@news.net.uni-c.dk...
Does anyone how any clue on how to read a TIFF file directly in a
filestream?
I know I can load the complete image into memory, but since this a 800+ mb
image, I usually get a "Out of memory" error.
Basically, all I have to do, is look up some certain pixel-values, so I
would guess that its just a matter of seeking to the correct bytes and parse them to a color.

Can anyone give me some pointers on how to calculate the correct position in the file, where I can get a certain pixel-value?
I'm complete off on this one, so any ideas would do (except the approach of splitting the image up in several smaller images).

Regards
/Morten Nielsen

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Morten Nielsen | last post by:
Does anyone how any clue on how to read a TIFF file directly in a filestream? I know I can load the complete image into memory, but since this a 800+ mb image, I usually get a "Out of memory"...
7
by: John Dann | last post by:
I'm trying to read some binary data from a file created by another program. I know the binary file format but can't change or control the format. The binary data is organised such that it should...
3
by: Brad | last post by:
I'm working on a web app which will display LARGE tiff image files (e.g files 10-20+ mb). Files are hidden from users direct access. For other, smaller image files I have used FileStream to read...
6
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On...
10
by: Ryan | last post by:
I've created a custom configuration section that inherits (naturally) from System.Configuration.ConfigurationSection. The configuration section is working 99% fine, however I keep coming across a...
1
by: piratelord | last post by:
I've an existing program I need to tweak that can open a non-text file at low level, find certain strings and replace with another, and write back to a new file. The string replacement bit isn't a...
6
by: Tod Birdsall, MCSD for .NET | last post by:
Hi All, I am looking for recommendations on ways/components to implement the following features in my application: 1. Dynamically generate a barcode image to insert into a PDF document using...
7
by: Ben | last post by:
Hi We are looking for a component that offers that offers the below for Tiff files: Image clean-up (deskew, despeckle) Printing capabilities from VB The ability to add text to image, e.g....
6
by: Victory | last post by:
Hi, I need to know the compression type of jpeg (jpg) files. I am using the System.Drawing.Imaging and loading the file using an Image object. The next thing i do, is to examine the propertyItems...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.