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 2 5118
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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"...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |