magicfield: Get magicfield from the header of an image file

View source: R/niftiFMRI.R

magicfieldR Documentation

Get magicfield from the header of an image file

Description

Determine the type of a file : NIFTI .nii format, NIFTI .hdr/.img pair format, ANALYZE format.

Usage

magicfield(file, verbose = TRUE)

Arguments

file

character, filename of an image (or header) file

verbose

verbose logical to display information in the console

Value

A list containing the magic and dim fields.

Examples

magicfield(system.file("example-nifti.hdr", package="AnalyzeFMRI"))

AnalyzeFMRI documentation built on Aug. 8, 2025, 7:16 p.m.