Learn R Programming

fsbrain (version 0.5.5)

extract.volume.3D: Try to extract a 3D volume from the input argument.

Description

Check whether it already is such an array, whether it is a filename that can be loaded with freesurferformats::read.fs.volume into such an array, etc.

Usage

extract.volume.3D(stats, silent = getOption("fsbrain.silent", default = FALSE))

Value

the obtained 3D array

Arguments

stats

a 3D array, 4D array or a string that can be treated as a filename to a volume image containing such an array.

silent

logical, whether to suppress file reading messages.