Content-type: text/html
This script is a wrapper that takes Analyze input and outputs the following Analyze images:
excode.hdr (exit codes for the reconstruction)
lns0.hdr (log of the mean S(0) in each voxel)
dxx.hdr (component dxx of diffusion tensor)
dxy.hdr (component dxy of diffusion tensor)
dxz.hdr (component dxz of diffusion tensor)
dyy.hdr (component dyy of diffusion tensor)
dyz.hdr (component dyz of diffusion tensor)
dzz.hdr (component dzz of diffusion tensor)
dl1.hdr (Largest eigenvalue of the tensor)
dl2.hdr (Middle eigenvalue of the tensor)
dl3.hdr (Smallest eigenvalue of the tensor)
fa.hdr (Fractional anisotropy)
tr.hdr (Trace of the diffusion tensor)
rd.hdr (Radial diffusion: average of the two smallest eigenvalues)
Other statistics may be computed in addition to the above output. See OPTIONS. As well as the Analyze output, the tensors and the eigen decompositions are also stored in Camino format.
The output root is prepended onto the above file names. If the output root is a directory (for example, "./"), then include a trailing directory separator.
The default data type of each output image is 64-bit big-endian double. This may be changed with the -outputdatatype option.
The input can either be a 4D Analyze file or a text file containing a list of 3D Analyze images, in the format described in analyze2voxel(1). The 3D images are assumed to be be in the same directory as the text file, unless the -imageprefix option is used.
The script expects a scheme file in SI units, see camino(1).
In addition to the Analyze images, two Camino files are produced:
dt.B${type} (diffusion tensors)
dt_eig_sys.B${type} (diffusion tensor eigen systems)
These files can be used as input to other Camino programs.
For input: the data is scaled according to the SPM scale fields in the Analyze header. Scaling is not applied if the scale slope is 0 (which would result in a zero image).
For output: The SPM "scale" field in the Analyze header is set to 1E12 by default in the headers d??.hdr and tr.hdr. This allows easy visualization of the tensor elements, eigenvalues, and trace in units of 10^6 mm^2 / s in MRICro (and other programs that use SPM's scale field). The associated values in the .img files are NOT scaled, and remain in the units of the scheme file. The header scale factor can be manually set by using the -hdrscale option.
Read the 4D Analyze DWI file DW.hdr, scheme file EPI.scheme, and output images to the dtimg directory:
analyzedti DW.hdr ./dtimg/ EPI.scheme
Do the same thing, but run a nonlinear tensor fit and set all voxels with S(0) < 100 to background:
analyzedti DW.hdr ./dtimg/ EPI.scheme -bgthresh 100 -inversion 2
The first three arguments are required. Additional options include