Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Jan Keij
Jan Keij le 29 Août 2019
Commenté : Walter Roberson le 29 Août 2019
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 commentaire
Walter Roberson
Walter Roberson le 29 Août 2019
Later versions use newer versions of libtiff, which was improved to detect more corrupt files.

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by