DylanMuir / TIFFStack

Load TIFF files into matlab fast, with lazy loading
http://dylan-muir.com/articles/tiffstack/
Other
36 stars 20 forks source link

Stacks with varying image data storage configurations cannot be read #18

Closed DylanMuir closed 7 years ago

DylanMuir commented 7 years ago

TIF files may have arbitrary image sizes and storage configurations per frame. TIFFStack currently assumes that all images share a common size and storage configuration. This means stacks that do not adhere to this rule cannot be read properly, although a TIFFStack object can be successfully created.

Frames which have a differing storage configuration to the first frame, will raise an error when data from that frame is requested.

DylanMuir commented 7 years ago

I have created a branch dev-different-image-config that hopefully fixes this bug. @ablot, please check if this works for you.

DylanMuir commented 7 years ago

@ablot Can I close this also?

DylanMuir commented 7 years ago

Now merged into master branch

ablot commented 7 years ago

I guess. There will still be an issue if something saves a stack with the information for row per strip only in the first frame and not after, but I have no tiff like that.

DylanMuir commented 7 years ago

Resolved by assuming that frames with no RPS information are stored by saving each entire frame in a contiguous chunk.