Skip to content

Commit

Permalink
imStacks/readstack.m: fix import of TIF images saved with ImageJ larg…
Browse files Browse the repository at this point in the history
…er than 4GB
  • Loading branch information
dlegland committed Jul 5, 2021
1 parent b7615d9 commit 3803ac1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions matImage/imStacks/readstack.m
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,10 @@
tokens = regexp(infos.ImageDescription, '\n', 'split');

% consider multiple if number of images is larger than 1
ind = find(strcmpi(tokens, 'image'));
ind = find(strncmpi(tokens, 'images', 6));
if ~isempty(ind)
nImages = str2num(tokens{ind+1}); %#ok<ST2NM>
token = tokens{ind};
nImages = str2num(token(8:end)); %#ok<ST2NM>
if nImages > 1
b = true;
end
Expand Down

0 comments on commit 3803ac1

Please sign in to comment.