Cannot read '*.tif ' file error message despite file being analyzed

6 views (last 30 days)
I created a MATLAB code that analyzes and applies functions to multiple *.tif files in a for loop. Although the loop is executed for the desired number of iterations and a resulting figure that shows the product is displayed, the following error message is also displayed after the final iteration:
Error using imread (line 438)
TIFF library error - 'TIFFFetchDirectory: Can not read TIFF directory count.'
This is problamatic because the product of this function must be used in anothe code. Even though I acquire the product from the function, I cannot proceed using it in the parent code because of the error message.
I would appreciate your help on how to solve this issue without the error message. Thank you!
  4 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!