DTI-TK

Diffusion Tensor Imaging ToolKit

DTI-TK Logo
Documentation::DTI-TK Interoperability

Documentation.Interoperability History

Hide minor edits - Show changes to output

Changed lines 13-14 from:
'''WARNING!!!''': When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool| the visualization section]].
 
to:
'''WARNING!!!''': When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool| the visualization section]]).
 
Changed lines 13-14 from:
'''WARNING!!!''': When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool?action=edit| the visualization section]].
 
to:
'''WARNING!!!''': When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool| the visualization section]].
 
Changed line 1 from:
(:noleft:) (:notitle:)(:title Interoperability:)
to:
(:noleft:) (:notitle:)(:title DTI-TK Interoperability:)
Changed lines 41-42 from:
To convert the FSL format to the DTI-TK format, use TVFromEigenSystem, e.g.
 
to:
To '''convert the FSL format to the DTI-TK format''', use TVFromEigenSystem, e.g.
 
Changed lines 55-56 from:
In practice, we recommend the users to use '''fsl_to_dtitk''', a script that takes a FSL-generated DTI eigensystem volumes (''non-brain tissue already removed'') and converts them into fully DTI-TK compatible DTI volumes, i.e., both in the correct format and [[Documentation.BeforeReg|correctly preprocessed]].
 
to:
'''In practice''', we recommend the users to use '''fsl_to_dtitk''', a script that takes a FSL-generated DTI eigensystem volumes (''non-brain tissue already removed'') and converts them into fully DTI-TK compatible DTI volumes, i.e., both in the correct format and [[Documentation.BeforeReg|correctly preprocessed]].
 
Changed lines 63-64 from:
To convert back to the FSL format, use ''TVEigenSystem'', e.g.
 
to:
To '''convert back to the FSL format''', use ''TVEigenSystem'', e.g.
 
Changed lines 71-72 from:
'''WARNING'': FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section about CAMINO above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK!
 
to:
'''WARNING''': FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section about CAMINO above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK!
 
Changed lines 37-38 from:
DTI-TK is an official [http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/Plugins |FSL plugin].  It implements a two-way interoperability support that enables the existing FSL users to continue to enjoy the powerful tract-based spatial statistic (TBSS) framework while taking advantage of the state-of-the-art tensor-based DTI registration provided by DTI-TK.
 
to:
DTI-TK is an official [[http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/Plugins |FSL plugin]].  It implements a two-way interoperability support that enables the existing FSL users to continue to enjoy the powerful tract-based spatial statistic (TBSS) framework while taking advantage of the state-of-the-art tensor-based DTI registration provided by DTI-TK.
 
Changed lines 13-21 from:
'''Warning''': When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool?action=edit| the visualization section]]. 
 
 
!! Interoperability with [[http://afni.nimh.nih.gov/afni | AFNI]]
In [[http://afni.nimh.nih.gov/afni | AFNI]], the program for creating DTI volumes from Diffusion-Weighted MR images, 3dDWItoDT, can output the DTI volume both in the NIfTI and multivolume Analyze format.  The outputs in both cases are fully compatible with DTI-TK.
 
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs]].

 
 
to:
'''WARNING!!!''': When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool?action=edit| the visualization section]].
 
Changed lines 36-39 from:
 
!! Interoperability with [[https://www.mristudio.org/ | DTI Studio]]
This popular DTI tool pioneered the fiber tractography known as FACT.  For tractography, [[https://www.mristudio.org/ | DTI Studio]] takes two inputs: a FA image in the ani format and the corresponding principal diffusion direction image in the vec format.  Here we describe the program in DTI-TK, TVToDTIStudio, that supports the conversion of the NIfTI tensor format to the inputs required for tractography in [[https://www.mristudio.org/ | DTI Studio]].  It takes a NIfTI tensor image as input and output the corresponding ani and vec files.
 
to:
!! Interoperability with [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]]
DTI-TK is an official [http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/Plugins |FSL plugin].  It implements a two-way interoperability support that enables the existing FSL users to continue to enjoy the powerful tract-based spatial statistic (TBSS) framework while taking advantage of the state-of-the-art tensor-based DTI registration provided by DTI-TK.
 
[[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]] is one of the programs that represent DTI volumes in terms of the corresponding eigensystem, i.e., the eigenvalues and the eigenvectors.  We've developed tools that convert from and to such format.  However, be aware that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.
 
To convert the FSL format to the DTI-TK format, use TVFromEigenSystem, e.g
.
 
Changed line 44 from:
TVToDTIStudio -in tensor.nii.gz 
to:
TVFromEigenSystem -basename tensor -type FSL 
Changed lines 47-48 from:
The outputs are simply tensor.ani, the FA map, and tensor.vec, the principal diffusion direction map.  The volume information, including dimension and FOV, can be determined by the command VolumeInfo.
 
to:
The input eigenvalue and eigenvector volumes are expected to use the FSL naming convention.  The example above works for the files named as tensor_L{1,2,3}.nii.gz and tensor_V{1,2,3}.nii.gz.  If your files are xyz_L{1,2,3}.nii.gz and xyz_V{1,2,3}.nii.gz, the basename will be xyz instead.
 
By default, you do not need to provide an output file name.  The program will create the appropriate file name from the basename.  In our example, the output will be tensor.nii.gz.  However, if you prefer to provide your own output file name, you can choose to do so.  In this case, the command should read

 
Changed line 52 from:
VolumeInfo tensor.nii.gz 
to:
TVFromEigenSystem -basename tensor -type FSL -out preferredfilename.nii.gz 
Added lines 55-58:
In practice, we recommend the users to use '''fsl_to_dtitk''', a script that takes a FSL-generated DTI eigensystem volumes (''non-brain tissue already removed'') and converts them into fully DTI-TK compatible DTI volumes, i.e., both in the correct format and [[Documentation.BeforeReg|correctly preprocessed]].
 
Using the above example, the command should read
 
Changed lines 60-61 from:
Volume Info of tensor.nii.gz
size: 112x112x60, voxel size: 2x2x2, origin: [0, 0, 0]
to:
fsl_to_dtitk tensor
Changed lines 63-74 from:
In this case, the image width is the x dimension, 112, the image height is the y dimension, 112, and the number of slices is 60.  The Field-of-View is then 224x224 (x dimension multiplies x voxel size and y dimension multiplies y voxel size), and the thickness is 2, the z voxel size.
 
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs]].
 
!! Interoperability with [[http://graphics.stanford.edu/projects/dti/software/|DTI-Query/CINCH]]
This excellent tractography visualization and selection/segmentation tools supports the two formats used in DTI-TK.
 
!! Interoperability with [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]]
Some programs output the eigensystem, i.e., the eigenvalues and the eigenvectors, and [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]] is one of them.  In this case, we've developed tools to convert from and to such format.  However, be aware that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.
 
To convert
to the FSL format, use ''TVEigenSystem'', e.g.
 
to:
To convert back to the FSL format, use ''TVEigenSystem'', e.g.
 
Changed lines 71-72 from:
Alternatively, to convert the FSL format to the DTI-TK format, use TVFromEigenSystem, e.g.
 
to:
'''WARNING'': FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section about CAMINO above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK!
 
!! Interoperability with [[http://afni.nimh.nih.gov/afni | AFNI]]
In [[http://afni.nimh.nih.gov/afni | AFNI]], the program for creating DTI volumes from Diffusion-Weighted MR images, 3dDWItoDT, can output the DTI volume both in the NIfTI and multivolume Analyze format.  The outputs in both cases are fully compatible with DTI-TK.
 
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs]].
 
!! Interoperability with [[https://www.mristudio.org/ | DTI Studio]]
This popular DTI tool pioneered the fiber tractography known as FACT.  For tractography, [[https://www.mristudio.org/ | DTI Studio]] takes two inputs: a FA image in the ani format and the corresponding principal diffusion direction image in the vec format.  Here we describe the program in DTI-TK, TVToDTIStudio, that supports the conversion of the NIfTI tensor format to the inputs required for tractography in [[https://www.mristudio.org/ | DTI Studio]].  It takes a NIfTI tensor image as input and output the corresponding ani and vec files
.
 
Changed line 82 from:
TVFromEigenSystem -basename tensor -type FSL 
to:
TVToDTIStudio -in tensor.nii.gz 
Changed lines 85-88 from:
The input eigenvalue and eigenvector volumes are expected to use the FSL naming convention. The example above works for the files named as tensor_L{1,2,3}.nii.gz and tensor_V{1,2,3}.nii.gz.  If your files are xyz_L{1,2,3}.nii.gz and xyz_V{1,2,3}.nii.gz, the basename will be xyz instead.
 
By default, you do not need to provide an output file name.  The program will create the appropriate file name from the basename.  In our example, the output will be tensor.nii.gz.  However, if you prefer to provide your own output file name, you can choose to do so.  In this case, the command should read

 
to:
The outputs are simply tensor.ani, the FA map, and tensor.vec, the principal diffusion direction map.  The volume information, including dimension and FOV, can be determined by the command VolumeInfo.
 
Changed line 88 from:
TVFromEigenSystem -basename tensor -type FSL -out preferredfilename.nii.gz 
to:
VolumeInfo tensor.nii.gz 
Deleted lines 90-95:
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs]].
 
'''fsl_to_dtitk''': This is a convenient script that takes a FSL-generated DTI eigensystem volumes (''non-brain tissue already removed'') and converts them into fully DTI-TK compatible DTI volumes, i.e., both in the correct format and [[Documentation.BeforeReg|correctly preprocessed]].
 
Using the above example, the command should read
 
Changed lines 92-93 from:
fsl_to_dtitk tensor
to:
Volume Info of tensor.nii.gz
size: 112x112x60, voxel size: 2x2x2, origin: [0, 0, 0]
Changed lines 96-101 from:
'''Warning''': FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section about CAMINO above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK!
to:
In this case, the image width is the x dimension, 112, the image height is the y dimension, 112, and the number of slices is 60.  The Field-of-View is then 224x224 (x dimension multiplies x voxel size and y dimension multiplies y voxel size), and the thickness is 2, the z voxel size.
 
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs]].
 
!! Interoperability with [[http://graphics.stanford.edu/projects/dti/software/|DTI-Query/CINCH]]
This excellent tractography visualization and selection/segmentation tools supports the two formats used in
DTI-TK.
April 27, 2011, at 10:23 AM by 172.29.30.72 -
Changed lines 96-97 from:
'''fsl_to_dtitk''': This is a convenient script that takes a FSL-generated DTI eigensystem volumes (''non-brain tissue already removed'') and converts them into fully DTI-TK compatible DTI volumes, i.e., in the correct format and [[Documentation.BeforeReg|correctly preprocessed]].
 
to:
'''fsl_to_dtitk''': This is a convenient script that takes a FSL-generated DTI eigensystem volumes (''non-brain tissue already removed'') and converts them into fully DTI-TK compatible DTI volumes, i.e., both in the correct format and [[Documentation.BeforeReg|correctly preprocessed]].
 
April 27, 2011, at 10:22 AM by 172.29.30.67 -
Changed lines 19-21 from:
'''NEXT''': Check the diffusivity units and visualize your DTs
 
 
to:
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs]].
 
 
Changed lines 41-43 from:
'''NEXT''':  Check the diffusivity units and visualize your DTs
 
 
to:
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs]].
 
 
Changed lines 64-65 from:
'''NEXT''':  Check the diffusivity units and visualize your DTs
 
to:
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs]].
 
Changed lines 94-97 from:
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs].
 
'''fsl_to_dtitk''': This is a convenient script that takes a FSL-generated DTI eigensystem volumes (''non-brain tissue already removed'') and converts them into fully DTI-TK compatible DTI volumes, i.e., in the correct format and [[Documentation.BeforeReg|correctly preprocessed]. 
 
to:
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs]].
 
'''fsl_to_dtitk''': This is a convenient script that takes a FSL-generated DTI eigensystem volumes (''non-brain tissue already removed'') and converts them into fully DTI-TK compatible DTI volumes, i.e., in the correct format and [[Documentation.BeforeReg|correctly preprocessed]].
 
April 27, 2011, at 10:20 AM by 172.29.30.65 -
Changed lines 94-97 from:
'''NEXT''': Check the diffusivity units and visualize your DTs.
 
'''fsl_to_dtitk''': This is a convenient script that takes a FSL-generated DTI eigensystem volumes (non-brain tissue already removed) and converts them into fully DTI-TK compatible DTI volumes, i.e., in the correct format and correctly preprocessed. 
 
to:
'''NEXT''': Check the [[Documentation.Diffusivity|diffusivity units]] and [[Documentation.VisualizationTool|visualize your DTs].
 
'''fsl_to_dtitk''': This is a convenient script that takes a FSL-generated DTI eigensystem volumes (''non-brain tissue already removed'') and converts them into fully DTI-TK compatible DTI volumes, i.e., in the correct format and [[Documentation.BeforeReg|correctly preprocessed]
 
April 27, 2011, at 10:18 AM by 172.29.30.65 -
April 27, 2011, at 10:17 AM by 172.29.30.75 -
Changed lines 78-79 from:
The output from this program will be tensor'_L{1,2,3}_'.nii.gz, the eigenvalues, and tensor'_V{1,2,3}_'.nii.gz, the eigenvectors, following precisely the FSL naming convention.
 
to:
The output from this program will be tensor_L{1,2,3}.nii.gz, the eigenvalues, and tensor_V{1,2,3}.nii.gz, the eigenvectors, following precisely the FSL naming convention.
 
Changed line 91 from:
TVFromEigenSystem -basename tensor -type FSL -out something.nii.gz 
to:
TVFromEigenSystem -basename tensor -type FSL -out preferredfilename.nii.gz 
Changed lines 94-96 from:
'''NEXT''': Check the diffusivity units and visualize your DTs
 
'''Warning''': FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section about CAMINO above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK!
to:
'''NEXT''': Check the diffusivity units and visualize your DTs.
 
'''fsl_to_dtitk''': This is a convenient script that takes a FSL-generated DTI eigensystem volumes (non-brain tissue already removed) and converts them into fully DTI-TK compatible DTI volumes, i.e., in the correct format and correctly preprocessed. 
 
Using the above example, the command should read
 
->[@
fsl_to_dtitk tensor
@]

 
'''Warning''': FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section about CAMINO above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK!
April 27, 2011, at 10:05 AM by 172.29.30.72 -
Changed lines 70-71 from:
Some programs output the egensystem, i.e., the eigenvalues and the egenvectors, and [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]] is one of them.  In this case, we've developed tools to convert from and to such format.  However, be aware that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.
 
to:
Some programs output the eigensystem, i.e., the eigenvalues and the eigenvectors, and [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]] is one of them.  In this case, we've developed tools to convert from and to such format.  However, be aware that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.
 
Changed lines 86-87 from:
The input eigenvalue and egenvector volumes are expected to use the FSL naming convention.  In the example above, these files should be named as tensor_L{1,2,3}.nii.gz and tensor_V{1,2,3}.nii.gz.  By default, you do not need to provide a output file name.  The program will create the appropriate file name from the basename.  In our example, the output will be tensor.nii.gz.  However, if you prefer to provide your own output file name, you can choose to do so.  In this case, the command should read
 
to:
The input eigenvalue and eigenvector volumes are expected to use the FSL naming convention.  The example above works for the files named as tensor_L{1,2,3}.nii.gz and tensor_V{1,2,3}.nii.gz.  If your files are xyz_L{1,2,3}.nii.gz and xyz_V{1,2,3}.nii.gz, the basename will be xyz instead.
 
By default, you do not need to provide an
output file name.  The program will create the appropriate file name from the basename.  In our example, the output will be tensor.nii.gz.  However, if you prefer to provide your own output file name, you can choose to do so.  In this case, the command should read
 
April 27, 2011, at 09:41 AM by 172.29.30.66 -
Changed lines 25-26 from:
->[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz
to:
->[@
ImageToTensorVolume ${prefix} hdr tensor.nii.gz
Changed lines 31-32 from:
->[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz 1 
to:
->[@
ImageToTensorVolume ${prefix} hdr tensor.nii.gz 1 
Changed lines 37-38 from:
->[@ ImageToTensorVolume D hdr tensor.nii.gz
to:
->[@
ImageToTensorVolume D hdr tensor.nii.gz
Changed lines 47-48 from:
->[@ TVToDTIStudio -in tensor.nii.gz 
to:
->[@
TVToDTIStudio -in tensor.nii.gz 
Changed lines 53-54 from:
->[@ VolumeInfo tensor.nii.gz 
to:
->[@
VolumeInfo tensor.nii.gz 
Changed lines 57-59 from:
->[@  Volume Info of tensor.nii.gz
  size: 112x112x60, voxel size: 2x2x2, origin: [0, 0, 0] @]
 
to:
->[@
Volume Info of tensor.nii.gz
size: 112x112x60, voxel size: 2x2x2, origin: [0, 0, 0]
@]
 
Changed lines 74-75 from:
->[@ TVEigenSystem -in tensor.nii.gz -type FSL 
to:
->[@
TVEigenSystem -in tensor.nii.gz -type FSL 
Changed lines 82-83 from:
->[@ TVFromEigenSystem -basename tensor -type FSL 
to:
->[@
TVFromEigenSystem -basename tensor -type FSL 
Changed lines 88-89 from:
->[@ TVFromEigenSystem -basename tensor -type FSL -out something.nii.gz 
to:
->[@
TVFromEigenSystem -basename tensor -type FSL -out something.nii.gz 
Changed lines 13-15 from:
When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool?action=edit| the visualization section]].
 
 
to:
'''Warning''': When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool?action=edit| the visualization section]].
 
 
Added lines 4-12:
!!Overview
There are many excellent DTI tools including [[http://afni.nimh.nih.gov/afni | AFNI]], [[http://web4.cs.ucl.ac.uk/research/medic/camino/pmwiki/pmwiki.php?n=Main.Guide | CAMINO]], [[https://www.mristudio.org/ | DTI Studio]], [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]] to name a few, that provide important functions in most users' existing DTI analysis pipeline, such as tensor reconstruction. However, none of these programs currently output their DTI volumes in a common data format.  An important contribution of DTI-TK is in providing necessary tools for users to
 
# convert the DTI volumes output from these popular packages into an open standard -- the NIfTI tensor format
# convert the NIfTI tensor format back to the DTI volumes in the native formats of these packages.
 
This makes it possible for users that have existing pipelines using any of these popular packages to take advantage of DTI-TK. Here, we describe the details of the tools that enable DTI-TK to work seamlessly with other DTI packages.
 
 
Changed lines 4-6 from:
When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool?action=edit| the Visualization page]].
 
 
to:
When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool?action=edit| the visualization section]].
 
 
Changed lines 4-6 from:
When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool described in the Section 5 of the Visualization page.
 
 
to:
When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool (for more information visit [[http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=Documentation.VisualizationTool?action=edit| the Visualization page]].
 
 
Changed line 43 from:
[@  Volume Info of tensor.nii.gz
to:
->[@  Volume Info of tensor.nii.gz
Changed line 58 from:
[@ TVEigenSystem -in tensor.nii.gz -type FSL 
to:
->[@ TVEigenSystem -in tensor.nii.gz -type FSL 
Changed line 16 from:
[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz
to:
->[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz
Changed line 21 from:
[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz 1 
to:
->[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz 1 
Changed line 26 from:
[@ ImageToTensorVolume D hdr tensor.nii.gz
to:
->[@ ImageToTensorVolume D hdr tensor.nii.gz
Changed line 35 from:
[@ TVToDTIStudio -in tensor.nii.gz 
to:
->[@ TVToDTIStudio -in tensor.nii.gz 
Changed line 40 from:
[@ VolumeInfo tensor.nii.gz 
to:
->[@ VolumeInfo tensor.nii.gz 
Changed line 65 from:
[@ TVFromEigenSystem -basename tensor -type FSL 
to:
->[@ TVFromEigenSystem -basename tensor -type FSL 
Changed line 70 from:
[@ TVFromEigenSystem -basename tensor -type FSL -out something.nii.gz 
to:
->[@ TVFromEigenSystem -basename tensor -type FSL -out something.nii.gz 
Changed lines 8-9 from:
->In [[http://afni.nimh.nih.gov/afni | AFNI]], the program for creating DTI volumes from Diffusion-Weighted MR images, 3dDWItoDT, can output the DTI volume both in the NIfTI and multivolume Analyze format.  The outputs in both cases are fully compatible with DTI-TK.
 
to:
In [[http://afni.nimh.nih.gov/afni | AFNI]], the program for creating DTI volumes from Diffusion-Weighted MR images, 3dDWItoDT, can output the DTI volume both in the NIfTI and multivolume Analyze format.  The outputs in both cases are fully compatible with DTI-TK.
 
Deleted lines 49-50:
''Acknowledgement: I'd like to thank Dr John Woo at University of Pennsylvania for contributing the key information that makes the DTIStudio support possible.''
 
Changed lines 75-77 from:
'''Warning''': FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section about CAMINO above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK! 
 
Acknowledgement: I'd like thank Dr Phil Cook at University of Pennsylvania for alerting me to the existence of the alternative matrix form DTI volume in FSL.
to:
'''Warning''': FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section about CAMINO above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK!
Changed lines 4-6 from:
->When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool described in the Section 5 of the Visualization page.
 
 
to:
When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool described in the Section 5 of the Visualization page.
 
 
Changed lines 14-17 from:
->Some programs can output individual tensor component images, and [[http://web4.cs.ucl.ac.uk/research/medic/camino/pmwiki/pmwiki.php?n=Main.Guide | CAMINO]] offers this option.  In this case, these component images, if stored in analyze or NIfTI format and appropriately named, can be converted to NifTI tensor format.  The component images should be named as ${prefix}{xx, yx, yy, zx, zy, zz}.hdr (lower triangular) or ${prefix}{xx, xy, xz, yy, yz, zz}.hdr (upper triangular).  The following command will combine these images into a single NIfTI tensor image, for lower triangular named files:
 
[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz @]
 
to:
Some programs can output individual tensor component images, and [[http://web4.cs.ucl.ac.uk/research/medic/camino/pmwiki/pmwiki.php?n=Main.Guide | CAMINO]] offers this option.  In this case, these component images, if stored in analyze or NIfTI format and appropriately named, can be converted to NifTI tensor format.  The component images should be named as ${prefix}{xx, yx, yy, zx, zy, zz}.hdr (lower triangular) or ${prefix}{xx, xy, xz, yy, yz, zz}.hdr (upper triangular).  The following command will combine these images into a single NIfTI tensor image, for lower triangular named files:
 
[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz
@]
 
Changed lines 21-22 from:
[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz 1 @]
 
to:
[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz 1  
@]
 
Changed lines 26-27 from:
[@ ImageToTensorVolume D hdr tensor.nii.gz @]
 
to:
[@ ImageToTensorVolume D hdr tensor.nii.gz
@]
 
Changed lines 33-36 from:
->This popular DTI tool pioneered the fiber tractography known as FACT.  For tractography, [[https://www.mristudio.org/ | DTI Studio]] takes two inputs: a FA image in the ani format and the corresponding principal diffusion direction image in the vec format.  Here we describe the program in DTI-TK, TVToDTIStudio, that supports the conversion of the NIfTI tensor format to the inputs required for tractography in [[https://www.mristudio.org/ | DTI Studio]].  It takes a NIfTI tensor image as input and output the corresponding ani and vec files.
 
[@ TVToDTIStudio -in tensor.nii.gz @]
 
to:
This popular DTI tool pioneered the fiber tractography known as FACT.  For tractography, [[https://www.mristudio.org/ | DTI Studio]] takes two inputs: a FA image in the ani format and the corresponding principal diffusion direction image in the vec format.  Here we describe the program in DTI-TK, TVToDTIStudio, that supports the conversion of the NIfTI tensor format to the inputs required for tractography in [[https://www.mristudio.org/ | DTI Studio]].  It takes a NIfTI tensor image as input and output the corresponding ani and vec files.
 
[@ TVToDTIStudio -in tensor.nii.gz  
@]
 
Changed lines 56-57 from:
->Some programs output the egensystem, i.e., the eigenvalues and the egenvectors, and [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]] is one of them.  In this case, we've developed tools to convert from and to such format.  However, be aware that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.
 
to:
Some programs output the egensystem, i.e., the eigenvalues and the egenvectors, and [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]] is one of them.  In this case, we've developed tools to convert from and to such format.  However, be aware that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.
 
Changed lines 60-61 from:
[@ TVEigenSystem -in tensor.nii.gz -type FSL @]
 
to:
[@ TVEigenSystem -in tensor.nii.gz -type FSL  
@]
 
Changed lines 67-68 from:
[@ TVFromEigenSystem -basename tensor -type FSL @]
 
to:
[@ TVFromEigenSystem -basename tensor -type FSL  
@]
 
Changed lines 72-73 from:
[@ TVFromEigenSystem -basename tensor -type FSL -out something.nii.gz @]
 
to:
[@ TVFromEigenSystem -basename tensor -type FSL -out something.nii.gz  
@]
 
Changed lines 36-37 from:
[@ VolumeInfo tensor.nii.gz @]
 
to:
[@ VolumeInfo tensor.nii.gz  
@]
 
Changed lines 4-6 from:
When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool described in the Section 5 of the Visualization page.
 
 
to:
->When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool described in the Section 5 of the Visualization page.
 
 
Changed lines 8-12 from:
In [[http://afni.nimh.nih.gov/afni | AFNI]], the program for creating DTI volumes from Diffusion-Weighted MR images, 3dDWItoDT, can output the DTI volume both in the NIfTI and multivolume Analyze format.  The outputs in both cases are fully compatible with DTI-TK.
 
NEXT: Check the diffusivity units and visualize your DTs
 
 
to:
->In [[http://afni.nimh.nih.gov/afni | AFNI]], the program for creating DTI volumes from Diffusion-Weighted MR images, 3dDWItoDT, can output the DTI volume both in the NIfTI and multivolume Analyze format.  The outputs in both cases are fully compatible with DTI-TK.
 
'''NEXT''': Check the diffusivity units and visualize your DTs
 
 
Changed lines 14-15 from:
Some programs can output individual tensor component images, and [[http://web4.cs.ucl.ac.uk/research/medic/camino/pmwiki/pmwiki.php?n=Main.Guide | CAMINO]] offers this option.  In this case, these component images, if stored in analyze or NIfTI format and appropriately named, can be converted to NifTI tensor format.  The component images should be named as ${prefix}{xx, yx, yy, zx, zy, zz}.hdr (lower triangular) or ${prefix}{xx, xy, xz, yy, yz, zz}.hdr (upper triangular).  The following command will combine these images into a single NIfTI tensor image, for lower triangular named files:
 
to:
->Some programs can output individual tensor component images, and [[http://web4.cs.ucl.ac.uk/research/medic/camino/pmwiki/pmwiki.php?n=Main.Guide | CAMINO]] offers this option.  In this case, these component images, if stored in analyze or NIfTI format and appropriately named, can be converted to NifTI tensor format.  The component images should be named as ${prefix}{xx, yx, yy, zx, zy, zz}.hdr (lower triangular) or ${prefix}{xx, xy, xz, yy, yz, zz}.hdr (upper triangular).  The following command will combine these images into a single NIfTI tensor image, for lower triangular named files:
 
Changed lines 26-28 from:
NEXT:  Check the diffusivity units and visualize your DTs
 
 
to:
'''NEXT''':  Check the diffusivity units and visualize your DTs
 
 
Changed lines 30-31 from:
This popular DTI tool pioneered the fiber tractography known as FACT.  For tractography, [[https://www.mristudio.org/ | DTI Studio]] takes two inputs: a FA image in the ani format and the corresponding principal diffusion direction image in the vec format.  Here we describe the program in DTI-TK, TVToDTIStudio, that supports the conversion of the NIfTI tensor format to the inputs required for tractography in [[https://www.mristudio.org/ | DTI Studio]].  It takes a NIfTI tensor image as input and output the corresponding ani and vec files.
 
to:
->This popular DTI tool pioneered the fiber tractography known as FACT.  For tractography, [[https://www.mristudio.org/ | DTI Studio]] takes two inputs: a FA image in the ani format and the corresponding principal diffusion direction image in the vec format.  Here we describe the program in DTI-TK, TVToDTIStudio, that supports the conversion of the NIfTI tensor format to the inputs required for tractography in [[https://www.mristudio.org/ | DTI Studio]].  It takes a NIfTI tensor image as input and output the corresponding ani and vec files.
 
Changed lines 43-44 from:
NEXT:  Check the diffusivity units and visualize your DTs
 
to:
'''NEXT''':  Check the diffusivity units and visualize your DTs
 
Changed lines 51-52 from:
Some programs output the egensystem, i.e., the eigenvalues and the egenvectors, and [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]] is one of them.  In this case, we've developed tools to convert from and to such format.  However, be aware that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.
 
to:
->Some programs output the egensystem, i.e., the eigenvalues and the egenvectors, and [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]] is one of them.  In this case, we've developed tools to convert from and to such format.  However, be aware that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.
 
Changed lines 67-68 from:
NEXT: Check the diffusivity units and visualize your DTs
 
to:
'''NEXT''': Check the diffusivity units and visualize your DTs
 
Changed lines 57-58 from:
The output from this program will be tensor_L{1,2,3}.nii.gz, the eigenvalues, and tensor_V{1,2,3}.nii.gz, the eigenvectors, following precisely the FSL naming convention.
 
to:
The output from this program will be tensor'_L{1,2,3}_'.nii.gz, the eigenvalues, and tensor'_V{1,2,3}_'.nii.gz, the eigenvectors, following precisely the FSL naming convention.
 
March 02, 2011, at 09:10 PM by Caroline - creation of the page, *** Add the link to the diffusivity and visualization pages****
Changed lines 6-18 from:
!! Interoperability with AFNI
 
In
AFNI, the program for creating DTI volumes from Diffusion-Weighted MR images, 3dDWItoDT, can output the DTI volume both in the NIfTI and multivolume Analyze format.  The outputs in both cases are fully compatible with DTI-TK.
 
NEXT: Follow instructions described in section 1.1
 
 
!! Interoperability with Camino

Some programs can output individual tensor component images, and Camino offers this option.  In this case, these component images, if stored in analyze or NIfTI format and appropriately named, can be converted to NifTI tensor format.  The component images should be named as ${prefix}{xx, yx, yy, zx, zy, zz}.hdr (lower triangular) or ${prefix}{xx, xy, xz, yy, yz, zz}.hdr (upper triangular).  The following command will combine these images into a single NIfTI tensor image, for lower triangular named files:
 
    $ ImageToTensorVolume ${prefix} hdr
tensor.nii.gz
 
to:
 
!! Interoperability with [[http://afni.nimh.nih.gov/afni | AFNI]]
In [[http://afni.nimh.nih.gov/afni | AFNI]], the program for creating DTI volumes from Diffusion-Weighted MR images, 3dDWItoDT, can output
the DTI volume both in the NIfTI and multivolume Analyze format.  The outputs in both cases are fully compatible with DTI-TK.
 
NEXT: Check the diffusivity units and visualize your DTs

 
 
!! Interoperability with [[http://web4
.cs.ucl.ac.uk/research/medic/camino/pmwiki/pmwiki.php?n=Main.Guide | CAMINO]]
Some programs can output individual tensor component images, and [[http://web4.cs.ucl.ac.uk/research/medic/camino/pmwiki/pmwiki.php?n=Main.Guide | CAMINO]] offers this option.  In this case, these component images, if stored in analyze or NIfTI format and appropriately named
, can be converted to NifTI tensor format.  The component images should be named as ${prefix}{xx, yx, yy, zx, zy, zz}.hdr (lower triangular) or ${prefix}{xx, xy, xz, yy, yz, zz}.hdr (upper triangular).  The following command will combine these images into a single NIfTI tensor image, for lower triangular named files:
 
[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz @]

 
Changed lines 20-21 from:
    $ ImageToTensorVolume ${prefix} hdr tensor.nii.gz 1
 
to:
[@ ImageToTensorVolume ${prefix} hdr tensor.nii.gz 1 @]
 
Changed lines 24-34 from:
    $ ImageToTensorVolume D hdr tensor.nii.gz
 
NEXT: Follow instructions described in section 1.1

 
 
!! Interoperability with DTIStudio
 
This popular DTI tool pioneered the fiber tractography known as
FACT.  For tractography, DTIStudio takes two inputs: a FA image in the ani format and the corresponding principal diffusion direction image in the vec format.  Here we describe the program in DTI-TK, TVToDTIStudio, that supports the conversion of the NIfTI tensor format to the inputs required for tractography in DTIStudio.  It takes a NIfTI tensor image as input and output the corresponding ani and vec files.
 
  $ TVToDTIStudio -in tensor
.nii.gz
 
to:
[@ ImageToTensorVolume D hdr tensor.nii.gz @]
 
NEXT:  Check the diffusivity units and visualize your DTs

 
 
!! Interoperability with [[https://www.mristudio.org/ | DTI Studio]]
This popular DTI tool pioneered the fiber tractography known as
FACT.  For tractography, [[https://www.mristudio.org/ | DTI Studio]] takes two inputs: a FA image in the ani format and the corresponding principal diffusion direction image in the vec format.  Here we describe the program in DTI-TK, TVToDTIStudio, that supports the conversion of the NIfTI tensor format to the inputs required for tractography in [[https://www.mristudio.org/ | DTI Studio]].  It takes a NIfTI tensor image as input and output the corresponding ani and vec files. 
 
[@ TVToDTIStudio -in tensor.nii.gz @]

 
Changed lines 36-40 from:
  $ VolumeInfo tensor.nii.gz

  Volume Info of tensor.nii.gz
  size: 112x112x60, voxel size: 2x2x2, origin: [0, 0, 0]
 
to:
[@ VolumeInfo tensor.nii.gz @]
 
[@  Volume Info of tensor.nii.gz
  size: 112x112x60, voxel size: 2x2x2, origin: [0, 0, 0] @]
 
Changed lines 43-48 from:
NEXT: Follow instructions described in section 1.1
 
Acknowledgement: I'd like to thank Dr John Woo at University of Pennsylvania for contributing the key information that makes the DTIStudio support
possible.)
 
!! Interoperability with DTI-Query/CINCH 
 
to:
NEXT:  Check the diffusivity units and visualize your DTs
 
''Acknowledgement: I'd like to thank Dr John Woo at University of Pennsylvania for contributing the key information that makes the DTIStudio support
possible.''
 
!! Interoperability with [[http://graphics.stanford.edu/projects/dti/software/|DTI-Query/CINCH]]
Changed lines 50-57 from:
!! Interoperability with FSL
 
Some
programs output the egensystem, i.e., the eigenvalues and the egenvectors, and FSL is one of them.  In this case, we've developed tools to convert from and to such format.  However, be AWARE that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.
 
To convert to the FSL format, use TVEigenSystem, e.g.
 
    $
TVEigenSystem -in tensor.nii.gz -type FSL
 
to:
!! Interoperability with [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]]
Some
programs output the egensystem, i.e., the eigenvalues and the egenvectors, and [[http://www.fmrib.ox.ac.uk/fsl/fdt/fdt_dtifit.html | FSL]] is one of them.  In this case, we've developed tools to convert from and to such format.  However, be aware that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.
 
To convert to the FSL format, use ''
TVEigenSystem'', e.g.
 
[@ TVEigenSystem -in tensor.nii.gz -type FSL @]

 
Changed lines 61-62 from:
    $ TVFromEigenSystem -basename tensor -type FSL
 
to:
[@ TVFromEigenSystem -basename tensor -type FSL @]
 
Changed lines 65-70 from:
    $ TVFromEigenSystem -basename tensor -type FSL -out something.nii.gz
 
NEXT: Follow instructions described in section 1.1

 
WARNING!!!:
FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section 2.2 above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK!
 
to:
[@ TVFromEigenSystem -basename tensor -type FSL -out something.nii.gz @]

NEXT: Check the diffusivity units and visualize your DTs

'''Warning''': FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section about CAMINO above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK!
 
March 02, 2011, at 08:53 PM by 172.29.30.69 -
Added lines 1-75:
(:noleft:) (:notitle:)(:title Interoperability:)
! Interoperability Tools in DTI-TK

When converting to/from another DTI program, one additional step to check is the physical unit of diffusivity.  Please refer to the page dedicated to this topic.  Be aware that these programs may change their formats unannounced.  To be confident in the correctness of the conversion, it is highly advisable to visually inspect one subject in your dataset using the tensor glyph tool described in the Section 5 of the Visualization page.

!! Interoperability with AFNI

In AFNI, the program for creating DTI volumes from Diffusion-Weighted MR images, 3dDWItoDT, can output the DTI volume both in the NIfTI and multivolume Analyze format.  The outputs in both cases are fully compatible with DTI-TK.

NEXT: Follow instructions described in section 1.1


!! Interoperability with Camino

Some programs can output individual tensor component images, and Camino offers this option.  In this case, these component images, if stored in analyze or NIfTI format and appropriately named, can be converted to NifTI tensor format.  The component images should be named as ${prefix}{xx, yx, yy, zx, zy, zz}.hdr (lower triangular) or ${prefix}{xx, xy, xz, yy, yz, zz}.hdr (upper triangular).  The following command will combine these images into a single NIfTI tensor image, for lower triangular named files:

    $ ImageToTensorVolume ${prefix} hdr tensor.nii.gz

or for upper triangular named files:

    $ ImageToTensorVolume ${prefix} hdr tensor.nii.gz 1

For example, if the tensor component images are Dxx.hdr, Dyx.hdr, Dyy.hdr, Dzx.hdr, Dzy.hdr Dzz.hdr, then the command would be

    $ ImageToTensorVolume D hdr tensor.nii.gz

NEXT: Follow instructions described in section 1.1


!! Interoperability with DTIStudio

This popular DTI tool pioneered the fiber tractography known as FACT.  For tractography, DTIStudio takes two inputs: a FA image in the ani format and the corresponding principal diffusion direction image in the vec format.  Here we describe the program in DTI-TK, TVToDTIStudio, that supports the conversion of the NIfTI tensor format to the inputs required for tractography in DTIStudio.  It takes a NIfTI tensor image as input and output the corresponding ani and vec files.

  $ TVToDTIStudio -in tensor.nii.gz

The outputs are simply tensor.ani, the FA map, and tensor.vec, the principal diffusion direction map.  The volume information, including dimension and FOV, can be determined by the command VolumeInfo.

  $ VolumeInfo tensor.nii.gz

  Volume Info of tensor.nii.gz
  size: 112x112x60, voxel size: 2x2x2, origin: [0, 0, 0]

In this case, the image width is the x dimension, 112, the image height is the y dimension, 112, and the number of slices is 60.  The Field-of-View is then 224x224 (x dimension multiplies x voxel size and y dimension multiplies y voxel size), and the thickness is 2, the z voxel size.

NEXT: Follow instructions described in section 1.1

Acknowledgement: I'd like to thank Dr John Woo at University of Pennsylvania for contributing the key information that makes the DTIStudio support possible.)

!! Interoperability with DTI-Query/CINCH

This excellent tractography visualization and selection/segmentation tools supports the two formats used in DTI-TK.

!! Interoperability with FSL

Some programs output the egensystem, i.e., the eigenvalues and the egenvectors, and FSL is one of them.  In this case, we've developed tools to convert from and to such format.  However, be AWARE that storing tensors in terms of their eigensystem doubles the storage footprint when compared to the format used in DTI-TK.

To convert to the FSL format, use TVEigenSystem, e.g.

    $ TVEigenSystem -in tensor.nii.gz -type FSL

The output from this program will be tensor_L{1,2,3}.nii.gz, the eigenvalues, and tensor_V{1,2,3}.nii.gz, the eigenvectors, following precisely the FSL naming convention.

Alternatively, to convert the FSL format to the DTI-TK format, use TVFromEigenSystem, e.g.

    $ TVFromEigenSystem -basename tensor -type FSL

The input eigenvalue and egenvector volumes are expected to use the FSL naming convention.  In the example above, these files should be named as tensor_L{1,2,3}.nii.gz and tensor_V{1,2,3}.nii.gz.  By default, you do not need to provide a output file name.  The program will create the appropriate file name from the basename.  In our example, the output will be tensor.nii.gz.  However, if you prefer to provide your own output file name, you can choose to do so.  In this case, the command should read

    $ TVFromEigenSystem -basename tensor -type FSL -out something.nii.gz

NEXT: Follow instructions described in section 1.1

WARNING!!!: FSL also has an option that allows for a DTI volume to be saved on disk in matrix form similar to but NOT the same as the NIfTI tensor format.  It stores the six independent matrix components using the "upper triangular" order rather than the "lower triangular" order specified in NIfTI standard! (See Section 2.2 above for definition of upper and lower triangular)  So DO NOT use this option if you want to use its output with DTI-TK!

Acknowledgement: I'd like thank Dr Phil Cook at University of Pennsylvania for alerting me to the existence of the alternative matrix form DTI volume in FSL.
Page last modified on April 12, 2014, at 10:08 AM

    SourceForge.net Logo   Valid XHTML 1.0 Transitional