Dear SPMers,
here the code again, but better formated:
I added in spm_dicom_convert.m at row 47:
[standard, guff] = select_last_guff(standard, guff);
and I added somewhere later the subfunction
%_______________________________________________________________________
function [standard, guff] = select_last_guff(standard, guff)
guff_IdX = find(cellfun(@(x) ~isfield(x,'ImageOrientationPatient'),standard));
guff = [guff, standard(guff_IdX)]; standard(guff_IdX) = [];
return;
%_______________________________________________________________________
kind regards,
Christoph Berger
|