mrmath: Compute summary statistic on image intensities either across...

Description Usage Arguments Value Examples

View source: R/mrmath.R

Description

Compute summary statistic on image intensities either across images, or along a specified axis of a single image

Usage

1
2
3
4
5
6
7
8
9
mrmath(infile, operation = c("mean", "median", "sum", "product", "rms",
  "norm", "var", "std", "min", "max", "absmax", "magmax"),
  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, axis = NULL, opts = "", verbose = TRUE, ...)

Arguments

infile

input filename or filenames. Can be list of nifti objects too.

operation

Supported operations are: mean, median, sum, product, rms (root-mean-square value), norm (vector 2-norm), var (unbiased variance), std (unbiased standard deviation), min, max, absmax (maximum absolute value), magmax (value with maximum absolute value, preserving its sign).

datatype

specify output image data type

outfile

Output response file

axis

perform operation along a specified axis of a single input image

opts

Additional options to pass

verbose

Print diagnostic output

...

arguments to pass to std_opts

Value

Output filename

Examples

1
2
3
4
## Not run: 
infile = "~/Downloads/data.nii.gz"

## End(Not run)

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