NAME

mri_motion_correct.fsl

DESCRIPTION

Aligns and averages two or more volumes. Uses the FSL flirt program. Actually calls fsl_rigid_register which calls flirt. See fsl_rigid_register -help. This should basically do the same thing as mri_motion_correct and mri_motion_correct2. One difference is that mri_motion_correct.fsl forces the input data to be float when converting to ANALYZE, and so the final output is is also float. mri_motion_correct2 keeps the native precision. The target for the registration can be selected (the default is to register to the first specified input volume). If the passed target number is larger than the number of input volumes, the first volume is used as target. The inputs and output can be any format accepted by mri_convert.

REQUIRED-FLAGGED ARGUMENTS

ArgumentExplanation
-o output specoutput file or directory (for COR)
-i input1 <-i input2 <-i input3>>

OPTIONAL-FLAGGED ARGUMENTS

ArgumentExplanation
--target #spec # of target for registration (default = 1)s
-wildassume unmatched args are input files
-tmpdir tmpdirdirectory for temporary files
-nocleanupdo not delete temporary files
-cmCOR volumes conform to min voxel size
-versionprint version and exit
-log logfileexplicitly spec logfile
-nologdo not create a log file
-debugprint lots of stuff to screen

EXAMPLE 1

mri_motion_correct.fsl -i 002.mgz -i 003 -o mc4.img
002.mgz is a volume in compressed MGH format. 003 is in COR format. mc4.img (the output) is in analyze format.

EXAMPLE 2

Say you have many input volumes, eg, 001.mgh ... 010.mgh, and you do not want to list all of them on the command-line with a -i. Then you can:
mri_motion_correct.fsl -o mc.mgh -wild *.mgh
Note that -wild must appear BEFORE the wildcard.

REPORTING

Report bugs to <freesurfer@nmr.mgh.harvard.edu>

SEE-ALSO

mri_motion_correct