Name

mri_convert - converts MRI data format/file type

Synopsis

mri_convert [options] <in volume> <out volume>

Arguments

Positional Arguments

|| in volume || your input file name

Required Flagged Arguments

None. The file type can be specified in two ways. First, mri_convert will try to figure it out on its own from the format of the file name (eg, files thatend in .img are assumed to be in spm analyze format). Second, the user canexplicity set the type of file using --in_type and/or --out_type. Legal values for --in_type (-it) and --out_type (-ot) are:

Optional Flagged Arguments

Options are

Outputs

out volume

desired output filename.format

Description

Examples

Example 1

APPLYING TRANSFORMS (INCLUDING TALAIRACH)

Example 2

CONVERTING TO SPM-ANALYZE FORMAT

Converting to SPM-Analyze format can be done in two ways, depeding uponwhether a single frame or multiple frames are desired. For a single frame,simply specify the output file name with a .img extension, and mri_convert will save the first frame into the file. For multiple frames, specify the base as the output file name and add --out_type spm. This will save each frame as baseXXX.img where XXX is the three-digit, zero-padded frame number. Frame numbers begin at one. By default, the width the of zero padding is 3.This can be controlled with --in_nspmzeropad N where N is the new width.

Bugs

None

Other Available Options

-r, --reorder olddim1 olddim2 olddim3

Notes:

If the user specifies any of the direction cosines, the ras_good_flag is set.

See Also

Links

FreeSurfer, FsFast

Methods Description

description
description

References

Reporting Bugs

Report bugs to <analysis-bugs@nmr.mgh.harvard.edu>

Author/s

CherifSahyoun