read_vol: Load an image volume from a file

View source: R/neurovol.R

read_volR Documentation

Load an image volume from a file

Description

Load an image volume from a file

Usage

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

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


bbuchsbaum/neuroim2 documentation built on April 20, 2024, 4:20 p.m.