473,491 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 5139
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
530
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
6027
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
2032
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
10016
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
9412
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
3592
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
1609
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
3765
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
7490
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
7115
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
6978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7154
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,...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.