The CorrectMotionEx(Target volume, Interpolation method, Full data set, Max nr of iterations, movies, log) function accepts the following parameters:
Target volume:
Defines the number of the volume to which the other volumes should be aligned
Possible values: between 1 and number of volumes in run
Interpolation method:
Defines how precisely the new intensity values are computed after motion correction
Possible values: 0/1 (trilinear-trilinear interpolation), 2 (trilinear-sinc) or 3 (sinc-sinc). The first type in each pair indicates the interpolation method for search, the second for transformation. See also Interpolation in motion correction.
Full data set:
This option is the inverse of the 'Reduced data set' checkbox of the '3D motion correction' section of the 2D/3D FMR Data Preprocessing dialog in BrainVoyager QX.
Possible values: true (useful data set) or false (use reduced data set).
Maximum number of iterations:
Defines for how many iterations the parameters should be fitted.
Create movies:
Indicates whether *.avi movies should be created or not.
Possible values: true (create movies) or false (no movies).
Note: function is not activated yet.
Create extended log file:
Saves a log file with values of the Levenberg-Marquardt algorithm parameters during fitting.
Possible values: true (create log file) or false (no log file).
There is also a possibility to include intrasession alignment with motion correction. This is described in the topic Intrasession alignment.