Diff for "CbuSliceTiming" - MRC CBU Imaging Wiki
location: Diff for "CbuSliceTiming"
Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2007-05-16 21:42:45
Size: 1006
Editor: l18
Comment:
Revision 5 as of 2013-03-07 21:24:08
Size: 1184
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
The routine is `mb_5_slice_timing.m`.  You could use it like this: The routine is [[attachment:mb_5_slice_timing.m]] It is installed in the CBU in the `/imaging/local/spm/common` directory. You could use it like this:
Line 8: Line 8:
P = spm_select; P = spm_select(Inf, 'image', 'Select files to slice time correct');
Line 10: Line 10:
sliceorder = [1:2:nslices 2:2:nslices]; sliceorder = [1:2:nslices 2:2:nslices]; % interleaved ascending acquisition
Line 14: Line 14:
timings = [slicetime slicetime+(TR-slicetime*16)]; timings = [slicetime slicetime+(TR-slicetime*nslices)];

Cbu slice timing routines

This is just a modified version of the spm slice timing routines that allows you to use other methods of interpolation for slice timing - see SliceTiming.

The routine is mb_5_slice_timing.m It is installed in the CBU in the /imaging/local/spm/common directory. You could use it like this:

P = spm_select(Inf, 'image', 'Select files to slice time correct');
nslices = 16; % number of slices
sliceorder = [1:2:nslices 2:2:nslices]; % interleaved ascending acquisition
refslice = 1; % slice for timing reference
slicetime = 0.115; % time to acquire one slice
TR = 2.02726;
timings = [slicetime slicetime+(TR-slicetime*nslices)];
mb_5_slice_timing(P, sliceorder, refslice, timings);

Which would reproduce the standard SPM sinc slice timing.

For linear slice timing - do all the same up to:

mb_5_slice_timing(P, sliceorder, refslice, timings, 'linear', 'la');

This will generate linear slice timing files with an la prefix. You should delete the first, and probably the last volume in the series for liner slice timing, as it will have been interpolated with missing data.

MatthewBrett

CbuImaging: CbuSliceTiming (last edited 2013-03-07 21:24:08 by localhost)