Error using imread (line 440) with R2018bU5.0 but not with R2009bSP1

3 views (last 30 days)
I have an old image processing util written w R2009bSP1 (Windows), and was exploring whether I could improve on it with some of the new features in R2018bUpdate5.0. I have 16-bit single layer LZW compressed tiff images and 8-bit 4 layer LZW compressed tiff images.
When reading the images (copied to my work PC) with "imread" in Matlab R2009, all images can be read wo errors. However, R2018 flags several images as corrupt:
"Error using imread (line 440), Unable to read TIFF file "cartid-01552099p123.tif". File is corrupt or image does not contain any readable strips."
Unfortunately, the referenced line in imread is of no help "[X, map] = call_format_specific_reader();"
When I copy the same image set to my home PC, some of the same images are flagged as corrupt, some do not and some additional images are flagged. All those images also read perfectly in R2009.
When I inspect the flagged image in R2009, they look as I would expect them to look, but whom do I believe? Are these images corrupt or is R2018b unreliable when reading image tiffs?
  1 Comment
Walter Roberson
Walter Roberson on 29 Aug 2019
Later versions use newer versions of libtiff, which was improved to detect more corrupt files.

Sign in to comment.

Answers (0)

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!