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.


fsbrain documentation built on July 9, 2023, 7:12 p.m.