[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bugs in imread for multi-page tiff image
From: |
Qianqian Fang |
Subject: |
bugs in imread for multi-page tiff image |
Date: |
Tue, 27 Apr 2010 11:37:54 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9pre) Gecko/20100209 Shredder/3.0.2pre |
hi
I found some issues using imread to read a multi-paged TIFF file.
The file under test can be downloaded from this link:
https://orbit.nmr.mgh.harvard.edu/plugins/scmsvn/viewcvs.php/*checkout*/trunk/iso2mesh/sample/headseg.tif?root=iso2mesh
when I use command
brain=imread('headseg.tif',1:256);
I got an array of dimension 256x256x1x256
with all zeros elements.
If I used a loop, such as below, I can get 256x256x256 array,
but still all zeros.
for i=1:256
brain(:,:,i)=imread('headseg.tif',i);
end
the above loop worked fine in Matlab.
is there a work-around to this?
thanks
Qianqian
- bugs in imread for multi-page tiff image,
Qianqian Fang <=