Hi Roman,
You might want to check out:
http://www.mrc-cbu.cam.ac.uk/Imaging/analyze_fmt.html
and
http://www.mrc-cbu.cam.ac.uk/Imaging/spm_format.html
which will answer some of your questions.
SPM uses a very restricted range of the Analyze header; see for example
the spm_hread.m function:
%FORMAT [DIM VOX SCALE TYPE OFFSET ORIGIN DESCRIP] = spm_hread(P);
%
% P - filename (e.g spm or spm.img)
% DIM - image size [i j k [l]] (voxels)
% VOX - voxel size [x y z [t]] (mm [secs])
% SCALE - scale factor
% TYPE - datatype (integer - see spm_type)
% OFFSET - offset (bytes)
% ORIGIN - origin [i j k]
% DESCRIP - description string
All other fields are set to default values; see spm_hwrite.m
Best,
Matthew
|