Hi April,
you could try something like this (see below),
depending on the type of scanner you use,
best regards,
Peter
-------------------------------------------------------------------
curr_path=pwd;
[dicomfile,dicompath] = uigetfile('*','Select one DICOM File');
disp(['File is ' dicomfile]);
cd(dicompath);
dicom_fid=fopen(dicomfile,'r');
dicom_eofstat = 0;
mybreak=0;
dicom_line='';
n_lines=0;
while (mybreak == 0)
dicom_line=fgetl(dicom_fid);
line_found=strfind(dicom_line,'sSliceArray.ucMode');
if (line_found> -1)
% disp(dicom_line);
mybreak = 1;
if strfind(dicom_line,' 0x1');
disp('Ascendng !');
end
if strfind(dicom_line,' 0x2');
disp('Descending !');
end
if strfind(dicom_line,' 0x4');
disp('Interleaved !');
end
end;
dicom_eofstat = feof(dicom_fid);
if dicom_eofstat == 1
mybreak = 1;
end
n_lines=n_lines+1;
end;
disp('Done !');
% disp(num2str(n_lines));
curr_path=pwd;
April Fan schrieb:
> Hi all,
>
> I am doing some old fMRI data analysis collected many years ago. I lost the original infor. It might sound silly, but could any one tell me how to identify if the data is interleaved EPI or not? Many thanks.
>
> April
>
|