Skip to content

Commit 43bd2ae

Browse files
committed
imStacks: cleanup image reading functions
1 parent fee8b56 commit 43bd2ae

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

matImage/imStacks/imFileInfo.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@
3838
error(['Can not manage file ending by ' ext]);
3939
end
4040

41-

matImage/imStacks/metaImageInfo.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@
146146

147147
% extract each possible tag
148148
switch tag
149-
% First, parse required tags
149+
% First parse mandatory tags
150150
case 'NDims'
151-
% number of dimensions. Used for initializing data structure
151+
% number of dimensions. Used for initializing data structure.
152152
nd = parseInteger(string);
153153
info.NDims = nd;
154154

@@ -262,7 +262,7 @@
262262
tline = fgetl(f);
263263
end
264264

265-
elseif ~isempty(strfind(string, ' '))
265+
elseif contains(string, ' ')
266266
% If filename contains spaces, it is parsed to extract indices
267267
C = textscan(string, '%s %d %d %d');
268268
pattern = C{1}{1};

matImage/imStacks/vgiStackInfo.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
elseif strcmpi(key, 'bitsperelement')
9696
info.bitDepth = str2double(value);
9797
if info.bitDepth ~= 16
98-
error('Only 16 bits per element are currently supported, not %d', bitDepth);
98+
error('Only 16 bits per element are currently supported, not %d', info.bitDepth);
9999
end
100100

101101
elseif strcmp(key, 'Name')

0 commit comments

Comments
 (0)