magicfield {AnalyzeFMRI}R 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)

Arguments

file

character, filename of an image (or header) file

Value

A list containing the magic and dim fields.

Examples

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

[Package AnalyzeFMRI version 1.1-23 Index]