DylanMuir / TIFFStack

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

Modify offset to uint64 in tiffread31_readtags #22

Closed ablot closed 7 years ago

ablot commented 7 years ago

Tags found in frames over 4gb could not be read since the offset was read as an uint32. I'm not sure if it could break non-big tiff or where to find how is the offset encoded. This PR works for ScanImage files (n=1)

DylanMuir commented 7 years ago

Hi @ablot, please try changing the 'uint64' on tiffread31_readtags.m line 356 to strTagSizeClass, and see if that works for you. That should be a general solution for normal TIFF and BigTIFF files.

ablot commented 7 years ago

That works for me. But I use only big tiffs

DylanMuir commented 7 years ago

Fixed in master branch. Thanks @ablot