|
|
Problem reading multi-image TIFF files
Posted:
Nov 9, 2009 3:43 AM
|
|
I'm trying to read some image stacks in TIFF format using imread. The files are created by commercial deconvolution software. I get the following error:
im=imread('1.stk','Index',3); ??? Error using ==> rtifc Invalid TIFF image index specified.
Error in ==> readtif at 52 [X, map, details] = rtifc(args);
Error in ==> imread at 430 [X, map] = feval(fmt_s.read, filename, extraArgs{:});
However, the file opens fine with ImageJ, and if I save it back to another file, the new file can then be read by MATLAB.
Does this indicate that the original image stack file is non-conformant to the TIFF standard, or could it be a problem with MATLAB itself?
(At the moment, I am working round the problem by invoking ImageJ in command line mode and getting it to run a macro to 'convert' each image stack that needs to be read. This is very slow and a horrible kludge.)
Francis
|
|