read_vol | R Documentation |
Load an image volume from a file
read_vol(file_name, index = 1)
file_name |
the name of the file to load |
index |
the index of the volume (e.g. if the file is 4-dimensional) |
an instance of the class DenseNeuroVol
fname <- system.file("extdata", "global_mask.nii", package="neuroim2")
x <- read_vol(fname)
print(dim(x))
space(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.