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

extract.volume.3DR Documentation

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))

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.

Value

the obtained 3D array

Note

This function stops with an error if the input cannot be returned as a 3D array.


dfsp-spirit/fsbrain documentation built on Nov. 28, 2024, 10:29 a.m.