Dear John, I am just seeking confirmation that, regarding the batch mode realignment, does it now mean that if I want to use 'sinc interpolation', I need to set 'reslice_method = -9' or some other negative number depending on the order of the interpolation? Many thanks. Ying SCANLab, Psychiatry University of Sheffield UK ----- Original Message ----- From: "John Ashburner" <[log in to unmask]> To: <[log in to unmask]> Sent: Wednesday, May 02, 2001 10:06 AM Subject: Re: Batch mode realignment > I've never actually used SPM99's batch mode, and don't fully understand how > it all works, but yep, I think you are right. There is a problem with the > documentation. Also, if you want Fourier interpolation, then you need to > enter a value of Inf. > > Cheers, > -John > > On Tuesday 01 May 2001 18:09, James N. Lee wrote: > > 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 > > -- > Dr John Ashburner. > Wellcome Department of Cognitive Neurology. > 12 Queen Square, London WC1N 3BG, UK. > tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381 > fax: +44 (0)20 78131420 > http://www.fil.ion.ucl.ac.uk/~john > mail: [log in to unmask]