read header information of an image file
Value
an instance of class FileMetaInfo
Examples
hdr <- read_header(system.file("extdata", "global_mask_v4.nii", package = "neuroim2"))
dim(hdr) # image dimensions
#> [1] 64 64 25 4
hdr@header$pixdim[5] # TR in seconds
#> [1] 0