TomographicImaging / CIL

A versatile python framework for tomographic imaging
https://tomographicimaging.github.io/CIL/
Apache License 2.0
88 stars 40 forks source link

Tiff stack reader does not work with multi-page 3D tiff stacks #1356

Open bjthorpe opened 1 year ago

bjthorpe commented 1 year ago

Hi I'm trying to read in some 3D image data I have stored as a single multi-page tiff stack as it stands the Read function in the TiffStackReader class when given a single file only reads in the 1st page as a 2D array In my case each page is a 3D slice. Is the intended behaviour? that is Do I have to split my tiff stack out into seperate files one for each 2D slice? because its not clear from the Docs (all they say is it supports a single or multiple files). To read in a single multipage tiff stack as a 3D array fix this you'd likely need to add an inner for loop to iterate over image sequence similar to this

paskino commented 1 year ago

It is the current behaviour of the TIFF stack reader: the code is written to assemble multiple (single page) TIFF files into a single datacontainer.

Thanks to point out a possible solution for multi page TIFF files.