Print

Print


I am attempting to replicate the realignment I perform through the SPM99
user interface with batch mode commands (SPM99 with Feb 2001 updates in
Matlab 6 within a Sun Solaris 5.7 operating system).

If I choose "sinc interpolation" in the user interface FlagsR.hold is set to
-9. If I want sinc interpolation in batch mode, line 798 of spm_bch.man says
to set reslice_method=2 within a realign structure, i.e.

realign = struct(...
    'subject_nb', 1, ...
    'num_sessions', nsessions, ...
    'sessions', [1], ...
    'option', 3, ...
    'modality', 1, ...
    'reslice_method', 2, ...
    'create', 4, ...
    'mask', 1, ...
    'adjust_sampling_errors', 0);

However, this setting results in FlagsR.hold=2, which produces Lagrange
polynomial interpolation, as noted in spm_slice_vol.m.

In order to replicate the sinc interpolation produced by the user interface,
I must set reslice_method to -9, contrary to the instructions in
spm_bch.man. Has anyone else noticed this, or have I made a mistake?

Many Thanks,

Jim