loadVolume: Load an image volume from a file

Description Usage Arguments Value Examples

View source: R/BrainVolume.R

Description

Load an image volume from a file

Usage

1
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

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

neuroim documentation built on May 2, 2019, 1:04 p.m.