powered by
Load an image volume from a file
read_vol(file_name, index = 1)
an instance of the class DenseNeuroVol
DenseNeuroVol
the name of the file to load
the index of the volume (e.g. if the file is 4-dimensional)
fname <- system.file("extdata", "global_mask_v4.nii", package="neuroim2") x <- read_vol(fname) print(dim(x)) space(x)
Run the code above in your browser using DataLab