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 5133
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: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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: 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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |