loadVolume {neuroim}R Documentation

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

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


[Package neuroim version 0.0.6 Index]