f.read.nifti.ts {AnalyzeFMRI}R Documentation

read in one voxel time series

Description

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.

Usage

f.read.nifti.ts(file, x, y, z)

Arguments

file

The .img file

x

The x-coordinate

y

The y-coordinate

z

The z-coordinate

Details

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.

Value

A vector containing the time series

See Also

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

Examples

f.read.nifti.ts(system.file("example-nifti.img", package="AnalyzeFMRI"),30,30,10)

[Package AnalyzeFMRI version 1.1-23 Index]