|
Man /
ReorientContent-type: text/html reorientSection: User Commands (1)Index Return to Main Contents NAMEreorient - Reorients diffusion tensors for consistency with an image transformation.SYNOPSISreorient -trans <transformation> [options]DESCRIPTIONReads diffusion tensor files (single or multiple) and an affine transformation, in the format output by FSL's flirt program, or a non-linear warp expressed as a displacement field. The displacement field can be either three separate analyze files for the x, y and z components or one nifti file in the format output by FSL's fnirt. The program outputs diffusion tensors reoriented for consistency with the transformation using either the preservation of principal directions (PPD) algorithm or finite strain (FS) reorientation; Alexander et al, IEEE Trans. Medical Imaging 20(11) 1131-1139 2001 describes both methods. By default the program reads and writes to and from the standard input and output streams. The usual camino command line options specify input and output types and redirections.Note that reorient does not warp the image, but just rotates diffusion tensors and leaves them in the same position. To warp the image, use another program such as FSL's flirt program. EXAMPLESReorient the diffusion tensors in DT image SubjectA_DT_S30.Bdouble using the PPD algorithm according to the transformation in Shear30.txt:reorient -trans Shear30.txt < SubjectA_DT_S30.Bdouble > SubjectA_DT_S30_PPD.Bdouble Now using FS instead: reorient -trans Shear30.txt -reorientation fs < SubjectA_DT_S30.Bdouble > SubjectA_DT_S30_FS.Bdouble We recommend using PPD always. FS is slightly faster, but less precise.
To perform reorientation for a non-linear transformation, the command format is similar: reorient -trans Warp.nii -datadims 128 128 60 -voxeldims 1.7 1.7 2.3 < SubjectA_DT_Warp.Bdouble > SubjectA_DT_WarpPPD.Bdouble We need to specify the image and voxel size on the command line for non-linear transformations. The above is tested only for nifti warp files output from FSL's fnirt using the --fout option. If the transformation is in three separate analyze images, the command is: reorient -xtrans WarpX -ytrans WarpY -ztrans WarpZ -datadims 128 128 60 -voxeldims 1.7 1.7 2.3 < SubjectA_DT_Warp.Bdouble > SubjectA_DT_WarpPPD.Bdouble
Here is an example using flirt to warp images and reorient to do the tensor reorientation. Suppose we have DT images from two subjects, SubjectA and SubjectB, that we want to align. First create FA images and use flirt to compute the transformation between the images by registering FA maps:
Now use flirt to warp each component of the diffusion tensor image SubjectA_DT.Bdouble separately using the transformation SASB_Affine.txt.
OPTIONS
AUTHORSDaniel Alexander <camino@cs.ucl.ac.uk>BUGS
IndexThis document was created by man2html, using the manual pages. Time: 02:07:11 GMT, December 04, 2017 |