Multipage image processing [message #68710] |
Tue, 17 November 2009 05:32 |
Wout De Nolf
Messages: 194 Registered: October 2008
|
Senior Member |
|
|
Hi,
I'm writing a program that processes multipage images (i.e. each file
contains typically 1000 images of size 1024x1024). I would like some
ideas on how to handle this:
1. Read the 1000x1024x1024 datablock in memory and start processing
2. Use ASSOC to associate a 3D array to the file and then process the
array as if it would be in memory
3. Read the separate 1024x1024 images as you are processing them
(read, process, read, process,...) keeping the file open in the
process (or maybe not, file might be on the network and connection
might be broken)
I think 2 or 3 are the better options because I can't be sure that the
3D datablock will always fit into memory. As for option 2, are there
memory limitations? Is it faster/slower than option 3?
Thanks,
Wout
|
|
|