Unable to read tif files within loop - TIFF library error - 'TIFFFetchDirectory: Can not read TIFF directory count.'

18 views (last 30 days)
I am only relatively new to matlab.
A part of a code that I am trying to run continues to throw the following error:
TIFF library error - 'TIFFFetchDirectory: Can not read TIFF directory count.'
This is the part of the code where the error is coming from:
for k=1:17
name1 = L{k}(j).name;
I{k}=imread(fullfile(imageDirectory{k},name1));
end
j is defined within an earlier part of the code as 1:2400 and valid within this code.
imageDirectory{k} is a set of subfolders (18 in total) that contain 2400 images within each folder. Once this part of the code is ran, I{k} is then used for further processing.
I am attempting to run this through a linux-based HPC which is potentially where I am getting into trouble. Any advice would be great as I cannot seem to find a solution anywhere to this particular error. When running locally, it runs fine.
The complete error is:

Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!