Learn R Programming

AnalyzeFMRI (version 1.1-25)

magicfield: 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)

Value

A list containing the magic and dim fields.

Arguments

file

character, filename of an image (or header) file

verbose

verbose logical to display information in the console

Examples

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

Run the code above in your browser using DataLab