mrconvert: Perform conversion between different file types and...

Description Usage Arguments Value Examples

View source: R/mrconvert.R

Description

Perform conversion between different file types and optionally extract a subset of the input image

Usage

1
2
3
4
5
6
7
8
mrconvert(infile, datatype = c("float32", "float32le", "float32be",
  "float64", "float64le", "float64be", "int64", "uint64", "int64le",
  "uint64le", "int64be", "uint64be", "int32", "uint32", "int32le",
  "uint32le", "int32be", "uint32be", "int16", "uint16", "int16le",
  "uint16le", "int16be", "uint16be", "cfloat32", "cfloat32le",
  "cfloat32be", "cfloat64", "cfloat64le", "cfloat64be", "int8", "uint8",
  "bit"), outfile = NULL, stride = NULL, bvals = NULL,
  bvecs = NULL, scheme = NULL, opts = "", verbose = TRUE, ...)

Arguments

infile

input filename or nifti

datatype

specify output image data type

outfile

Output response file

stride

specify the strides of the output data in memory, as comma-separated values

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

opts

Additional options to pass

verbose

Print diagnostic output

...

arguments to pass to std_opts

Value

Output filename

Examples

1
2
3
4
5
6
7
8
## Not run: 
infile = "~/Downloads/data.nii.gz"
bvals = "~/Downloads/bvals"
bvecs = "~/Downloads/bvecs"
mrfile = mrconvert(infile, bvals = bvals, bvecs = bvecs,
outfile = tempfile(fileext = ".mif"))

## End(Not run)

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