Learn R Programming

neuroim (version 0.0.6)

loadVolume: Load an image volume from a file

Description

Load an image volume from a file

Usage

loadVolume(fileName, index = 1)

Arguments

fileName
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 DenseBrainVolume

Examples

Run this code
fname <- system.file("extdata", "global_mask.nii", package="neuroim")
x <- loadVolume(fname)
print(dim(x))
space(x)

Run the code above in your browser using DataLab