Read HEAD/BRIK file.
read.AFNI(filename,vol=NULL,level=0.75,mask=NULL,setmask=TRUE)
Object of class "fmridata" with the following list entries:
raw vector (numeric size 4) containing the four dimensional data cube (the first three dimensions are voxel dimensions, the fourth dimension denotes the time).
header information list
data source. string "HEAD/BRIK"
voxel size in mm
position of the datacube origin
data orientation code. see AFNI documentation
dimension of the datacube
weights vector coding the relative voxel sizes in x, y, z-direction.
head mask
name of the file (without extension)
vector of volumes of the dataset to be read
Quantile level defining the mask
array or nifti-object containing the mask. If set this replaces the mask defined by argument level.
Logical (default TRUE
), whether to define a suitable mask based on level
Karsten Tabelow tabelow@wias-berlin.de
The function reads a HEAD/BRIK file. If vol
is given (defaults to
NULL
), only volumes in this vector are read, in order to save
memory.
R. W. Cox (1996). AFNI: Software for analysis and visualization of functional magnetic resonance neuroimages. Computers and Biomed. Res. 29:162-173.
Polzehl, J. and Tabelow, K. (2007) fmri: A Package for Analyzing fmri Data, R News, 7:13-17 .
write.AFNI
, read.ANALYZE
if (FALSE) afni <- read.AFNI("afnifile")
Run the code above in your browser using DataLab