fsl.data.dtifit¶
This module provides the DTIFitTensor class, which encapsulates
the diffusion tensor data generated by the FSL dtifit tool.
The following utility functions are also defined:
getDTIFitDataPrefixReturns the prefix (a.k,a, base name) used for the dtifitfile names in the given directory, orNoneif thedtifitfiles could not be identified.isDTIFitPathReturns Trueif the given directory path looks like it containsdtifitdata,Falseotherwise.looksLikeTensorImageReturns Trueif the givenImagelooks like it could contain tensor matrix data,Falseotherwise.decomposeTensorMatrixDecomposes the given numpyarray into six separate arrays, containing the eigenvectors and eigenvalues of the tensor matrix decompositions.
-
fsl.data.dtifit.getDTIFitDataPrefix(path)¶ Returns the prefix (a.k,a, base name) used for the
dtifitfile names in the given directory, orNoneif thedtifitfiles could not be identified.
-
fsl.data.dtifit.isDTIFitPath(path)¶ Returns
Trueif the given directory path looks like it containsdtifitdata,Falseotherwise.
-
fsl.data.dtifit.looksLikeTensorImage(image)¶ Returns
Trueif the givenImagelooks like it could contain tensor matrix data,Falseotherwise.
-
fsl.data.dtifit.decomposeTensorMatrix(data)¶ Decomposes the given
numpyarray into six separate arrays, containing the eigenvectors and eigenvalues of the tensor matrix decompositions.Parameters: image – A 4D numpyarray with 6 volumes, which contains the unique elements of diffusion tensor matrices at every voxel.Returns: A tuple containing the principal eigenvectors and eigenvalues of the tensor matrix.
-
class
fsl.data.dtifit.DTIFitTensor(path)¶ Bases:
fsl.data.image.NiftiThe
DTIFitTensorclass is able to load and encapsulate the diffusion tensor data generated by the FSLdtifittool. TheDtiFitTensorclass supports tensor model data generated bydtifit, where the eigenvectors and eigenvalues of the tensor matrices have been saved as six separate NIFTI images.-
V1()¶
-
V2()¶
-
V3()¶
-
L1()¶
-
L2()¶
-
L3()¶
-