Skip to content

Commit

Permalink
imStacks: cleanup image reading functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dlegland committed Aug 22, 2019
1 parent fee8b56 commit 43bd2ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion matImage/imStacks/imFileInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@
error(['Can not manage file ending by ' ext]);
end


6 changes: 3 additions & 3 deletions matImage/imStacks/metaImageInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@

% extract each possible tag
switch tag
% First, parse required tags
% First parse mandatory tags
case 'NDims'
% number of dimensions. Used for initializing data structure
% number of dimensions. Used for initializing data structure.
nd = parseInteger(string);
info.NDims = nd;

Expand Down Expand Up @@ -262,7 +262,7 @@
tline = fgetl(f);
end

elseif ~isempty(strfind(string, ' '))
elseif contains(string, ' ')
% If filename contains spaces, it is parsed to extract indices
C = textscan(string, '%s %d %d %d');
pattern = C{1}{1};
Expand Down
2 changes: 1 addition & 1 deletion matImage/imStacks/vgiStackInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
elseif strcmpi(key, 'bitsperelement')
info.bitDepth = str2double(value);
if info.bitDepth ~= 16
error('Only 16 bits per element are currently supported, not %d', bitDepth);
error('Only 16 bits per element are currently supported, not %d', info.bitDepth);
end

elseif strcmp(key, 'Name')
Expand Down

0 comments on commit 43bd2ae

Please sign in to comment.