read_vol: Load an image volume from a file

Description Usage Arguments Value Examples

View source: R/neurovol.R

Description

Load an image volume from a file

Usage

1
read_vol(file_name, index = 1)

Arguments

file_name

the name of the file to load

index

the index of the volume (e.g. if the file is 4-dimensional)

Value

an instance of the class DenseNeuroVol

Examples

1
2
3
4
fname <- system.file("extdata", "global_mask.nii", package="neuroim2")
x <- read_vol(fname)
print(dim(x))
space(x)

bbuchsbaum/neuroim2 documentation built on Oct. 12, 2019, 6:54 a.m.