Reads a NIfTI-2 header from a filename

nifti_2_hdr(fname, verbose = FALSE, warn = -1)

Arguments

fname

Filename

verbose

Print diagnostic messages

warn

Should warnings be printed? Passed to options

Value

Object of class nifti

Note

The unused_str part of the header is not returned, but is an empty string of 15 characters. This code was adapted by the oro.nifti package