read_header: read header information of an image file

View source: R/meta_info.R

read_headerR Documentation

read header information of an image file

Description

read header information of an image file

Usage

read_header(file_name)

Arguments

file_name

the name of the file to read

Value

an instance of class FileMetaInfo

Examples

hdr <- read_header(system.file("extdata", "global_mask_v4.nii", package = "neuroim2"))
dim(hdr)                  # image dimensions
hdr@header$pixdim[5]      # TR in seconds

neuroim2 documentation built on April 16, 2026, 5:07 p.m.