Humboldt-Universität zu Berlin - Faculty of Mathematics and Natural Sciences - Strukturforschung / Elektronenmikroskopie

readDM3.txt

% function [img params tilt tags] = readDM3(filename)
%
% This function reads an image(stack) written in the Gatan DM3 format.
% The params array holds the imaging parameters:
%
% 1: magnification;
% 2: binning_x
% 3: binning_y
% 4: exposure_time
% 5: zoom_factor
% 6: anti_blooming
% 7: pixelSizeX (nm)
% 8: pixelSizeY (nm)
% 9: defocus
%
% The 3rd return argument is the list of tilt angles, if the input file is
% a tomographic series recorded with the Gatan Tomography plugin.
%
% The 4th return argument is the tag list of the image. Special characters
% ' ', '(', ')', and '#' in the field names are all converted to '_'.