Learn R Programming

AnalyzeFMRI (version 1.1-24)

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)

Arguments

file

character, filename of an image (or header) file

Value

A list containing the magic and dim fields.

Examples

Run this code
# NOT RUN {
magicfield(system.file("example-nifti.hdr", package="AnalyzeFMRI"))
# }

Run the code above in your browser using DataLab