5f3cba02
David Mayerich
initial public co...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
%Loads a standard Agilent ResPro binary file (DMD, DRD, SEQ, etc)
% Scalable Tissue Imaging and Modeling Laboratory
% University of Houston
% developer: David Mayerich (mayerich@uh.edu)
function S = stimLoadAgilent(filename)
fid = fopen(filename);
fseek(fid, 9, 'bof');
Z = fread(fid, 1, 'uint16');
fseek(fid, 13, 'cof');
X = fread(fid, 1, 'uint16');
Y = fread(fid, 1, 'uint16');
fseek(fid, 1020, 'bof');
S = reshape(fread(fid, [X, Y * Z], 'float32'), [X, Y, Z]);
|