No BSD License
-
channelinforead(fid, lsminf)
CHANNELINFOREAD Read in channelinfo from Zeiss LSM file format
-
ifdread(fid)
IFDREAD read IFD entries from TIFF file according to TIFF standard
-
lsminfo(filename)
LSMINFO read headers and entry directories for Zeiss LSM files
-
scaninforead(fid, offset)
SCANINFOREAD Read in scaninfo database of Zeiss LSM file format
-
structappend(struct, field, v...
STRUCTAPPEND
-
structcombine(struct1, struct...
STRUCTCOMBINE
-
structmap(tagcode, map, numpr...
STRUCTMAP use struct as a map between field names and values
-
structread(fid, structdef);
STRUCTREAD read in structured data
-
structsizeof(structdef)
STRUCTSIZEOF Determine size (in bytes) of struct to be read
-
timestampsread(fid, lsminf)
TIMESTAMPSREAD Read in actual timestamps from Zeiss LSM file format, do some
-
LSM_H.m
-
TIFF_H.m
-
contents.m
-
contents.m
-
View all files
from
LSM File Toolbox
by Peter Li
Functions for reading info databases of Zeiss LSM confocal microscope files.
|
| structmap(tagcode, map, numprefix)
|
function tag = structmap(tagcode, map, numprefix)
% STRUCTMAP use struct as a map between field names and values
% TAG = STRUCTMAP(TAGCODE, MAP, [NUMPREFIX])
%
% Unfortunately, MatLab structs cannot have numerical field names, so we must
% use a hack NUMPREFIX. A better solution would be to use cell arrays and OO
% programming.
%
% Peter Li 30-Aug-05
% Some rights reserved. Licensed under Creative Commons: http://creativecommons.org/licenses/by-nc-sa/3.0/
error(nargchk(2, 3, nargin));
if nargin < 3, numprefix = 'x'; end % Default NUMPREFIX hack for numerical fields
if ~isstruct(map), error('Second argument must be a struct map'); end
if isnumeric(tagcode),
tagcode = [numprefix num2str(tagcode)];
elseif ~ischar(tagcode),
error('Function ''structmap'' is defined for tagcode values of class numeric and char only');
end
if isfield(map, tagcode),
tag = map.(tagcode);
else
tag = [];
end
|
|
Contact us at files@mathworks.com