dwi2mask: Transform DWI to mask

Description Usage Arguments Value Examples

View source: R/dwi2mask.R

Description

Transform DWI to mask

Usage

1
2
3
4
dwi2mask(infile, bvals = NULL, bvecs = NULL, scheme = NULL,
  outfile = NULL, clean_scale = 2, opts = "", verbose = TRUE)

scheme_or_bvals(bvals = NULL, bvecs = NULL, scheme = NULL)

Arguments

infile

the input DWI image containing volumes that are both diffusion weighted and b=0

bvals

The file containing the b-values.

bvecs

The file containing the b-vectors.

scheme

The file containing a 4xT text file, instead of bvals/bvecs

outfile

output mask file name

clean_scale

amount of cleaning of the mask is done

opts

Additional options to pass

verbose

Print diagnostic output

Value

Name of output file

Examples

1
2
3
4
5
6
7
## Not run: 
infile = "~/Downloads/data.nii.gz"
bvals = "~/Downloads/bvals"
bvecs = "~/Downloads/bvecs"
mask = dwi2mask(infile, bvals = bvals, bvecs = bvecs)

## End(Not run)

muschellij2/mrtrix documentation built on July 9, 2019, 9:15 a.m.