powered by
Given a 4D NIFTI .img/.hdr image pair or a .nii file this function can read in the time series from a specified position in 3D into a vector.
f.read.nifti.ts(file, x, y, z)
A vector containing the time series
The .img file
The x-coordinate
The y-coordinate
The z-coordinate
f.read.nifti.slice, f.read.nifti.slice.at.all.timepoints, f.write.nifti,
f.read.nifti.slice
f.read.nifti.slice.at.all.timepoints
f.write.nifti
f.read.nifti.ts(system.file("example-nifti.img", package = "AnalyzeFMRI"), 30, 30, 10)
Run the code above in your browser using DataLab