2003.09.10 13:20 "[Tiff] read in whole tiff file", by Tom Kacvinsky
I beleive Pushkar is trying to chunk the image up into pieces for processing on different processors. Perhaps the way to chunk the file up is to use either the tiles or strips. Say there are 5 strips and 2 processors. Then 2 strips go to each processor, and the remaining strip goes to one processor or the other... Ditto for tiles. I remember using MPI to parallelize the LDU decomposition of a matrix. It got to be rather heinous, but I was a math magor, not a comp. sci. magor. :-)
Is there a way to read in the complete TIFF file in one READ call? I need to do this. Thanks,
I find it almost impossible to imagine a compelling need to read an entire TIFF file in one call. Computer programming languages include looping constructs in order to allow us to complete an aggregate result by a series of small operations, and subroutines so we can bundle them into packages as needed.
However, the TIFFReadRGBAImage() call will read a whole open TIFF image into a memory array in RGBA (red/green/blue/alpha) form in a single call. Try reading over the man page on it and see if it is suitable to your needs.
> Tiff mailing list