To combine motion correction with intra-session alignment, the methods CorrectMotionTargetVolumeInOtherRun() and CorrectMotionTargetVolumeInOtherRunEx() are available.
The CorrectMotionTargetVolumeInOtherRun(filename, volume) requires two parameters, i.e. the name of the FMR project being the other run and the volume to align to:
1. target fmr file name
2. target volume number
This function corresponds to the functionality in the following dialog:
A reduced data set will be used, and the default number of iterations is set (100). No extended log file is created.
The CorrectMotionTargetVolumeInOtherRunEx() accepts the following 7 parameters:
1. target fmr file name (string)
2. target volume number (number)
3. interpolation method (use 0/1: trilinear-trilinear, 2: trilinear-sinc, 3: sinc-sinc), see Interpolation page
4. use full data set (if 1: yes, if 0: no) or true or false (boolean)
5. maximum number of iterations (for example '100') (number)
6. create movies (0: no) or false (boolean)
7. create extended log file (if 1: yes, if 0: no) or true or false (boolean)
These parameters are the same as for CorrectMotionEx() method except for the extra "TargetFMRFileName" parameter used here.
var success = docFMR.CorrectMotionTargetVolumeInOtherRunEx(fmrname, targetvolume, interpolation, doreduceddataset, iterations, nomovies, doextendedlog);