Error using imread (line 440) with R2018bU5.0 but not with R2009bSP1
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2019-8-29
Later versions use newer versions of libtiff, which was improved to detect more corrupt files.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!