Learn R Programming

AnalyzeFMRI (version 1.1-16)

f.read.nifti.volume: read whole image file

Description

Reads the NIFTI image file into an array.

Usage

f.read.nifti.volume(file)

Arguments

file

The location of the image file to be read

Value

An array with the appropriate dimensions containing the image volume. A print out of the file information is also given. The function assumes that the corresponding .hdr file is in the same directory as the .img file (but if a .nii file is provided).

See Also

f.read.nifti.slice, f.read.nifti.slice.at.all.timepoints, f.read.nifti.ts

Examples

Run this code
# NOT RUN {
a<-f.read.nifti.volume(system.file("example-nifti.img", package="AnalyzeFMRI"))
dim(a)
# }

Run the code above in your browser using DataLab