Dear Xiaodong,
You can check TriggerTime, SliceLocation, and InstanceNumber
if you have 2D DICOM files as in the attached m-file.
Cheers,
Witaya Sungkarat
> Deal all
>
> I have a stupid question, i don't know how i can identify that my data are
> acquired in an interleaved mode or in a sequential mode. It seems very
> important for the slice timing.
>
>
> thanks a lots!
>
>
> Xiaodong Wang
function acq_info(n)
%
% acq_info(#ofSlices+1)
%
% check acquisition info (fMRI style)
%
% e.g.,
%
% acq_info(31)
fnames = dir;
if n>(size(fnames,1)-2)
n = (size(fnames,1)-2)
end
Sl_Time = [];
Sl_no = [];
Sl_loc = [];
icount = 0;
for i = 3:(n+2)
icount = icount+1;
fname = getfield(fnames,{i,1},'name')
finfo = dicominfo(fname);
Sl_Time = [Sl_Time finfo.TriggerTime];
Sl_no = [Sl_no finfo.InstanceNumber];
Sl_loc = [Sl_loc finfo.SliceLocation];
end
Date = finfo.AcquisitionDate
Img_Mode = finfo.ScanningSequence
Img_bit = finfo.BitDepth
Acq_size = finfo.AcquisitionMatrix'
Img_size = [finfo.Width finfo.Height]
Pixel_Size = finfo.PixelSpacing'
Sl_Spacing = finfo.SpacingBetweenSlices
Sl_Thickness = finfo.SliceThickness
TE = finfo.EchoTime
TR = finfo.RepetitionTime
Sl_loc
Sl_no
Sl_Time
aTR = Sl_Time(n) - Sl_Time(1)
|