powered by
read header information of an image file
read_header(file_name)
an instance of class FileMetaInfo
FileMetaInfo
the name of the file to read
hdr <- read_header(system.file("extdata", "global_mask_v4.nii", package = "neuroim2")) dim(hdr) # image dimensions hdr@header$pixdim[5] # TR in seconds
Run the code above in your browser using DataLab