"dtiData"
object from Diffusion Weighted Data from medicial imaging files in a list of directories or from an imagefile, where the diffusion weighted data is given as 2-byte integer.dtiData(gradient, imagefile, ddim, xind = NULL, yind = NULL, zind = NULL, level = 0, mins0value = 0, maxvalue = 10000, voxelext = c(1, 1, 1), orientation = c(1, 3, 5))
readDWIdata(gradient, dirlist, format, nslice, order = NULL, xind = NULL, yind = NULL, zind = NULL, level = 0, mins0value = 0, maxvalue = 10000, voxelext = NULL, orientation = c(1, 3, 5))
dirlist
. If not given, 1:n is used for n data files (no order change).mins0value
as quantile of positive S0-valueslevel
maxvalue
inactive"dtiData"
.dtiData
creates an object of class "dtiData"
from an image file, where the diffusion weighted data is given as 2-byte integer. This image file has to be prepared by the user. Use writeBin
to write out first all S0 images and than all Si images. The gradient
should be created according to this order. Run the demo in order to have an example, how to do this!
The function readDWIdata
reads the data files given in the directories in dirlist
in alphabetic order. The order can be changed using the order
argument: If filelist
is the vector of files in alphabetic order, they are read in the order filelist[order]
. If order is not given order <- 1:n
is used (no change!). The medical imaging format is given by format
and can be one of ''DICOM'', ''NIFTI'', ''ANALYZE'', or ''AFNI''. The number of slices of the three dimensional data cube is given by nslice
. The diffusion gradients are provided as matrix gradient
. xind
, yind
, and zind
define a region of interest as indices. If not given 1:dim[i]
is used. level
determine mins0value
as quantile of positive S0-values. mins0value
sets voxel in S0-images with values less than level
maxvalue
sets voxel with values larger than maxvalue
inactive.
voxelext
defines the voxel extension, overwrites the values found in the imaging files. orientation
codes the data orientation in AFNI notation.
dti.smooth
,
dtiTensor-methods
,
dtiData