magicfield: Get magicfield from the header of an image file

Description Usage Arguments Value Examples

View source: R/niftiFMRI.R

Description

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

Usage

1

Arguments

file

character, filename of an image (or header) file

Value

A list containing the magic and dim fields.

Examples

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

AnalyzeFMRI documentation built on Oct. 5, 2021, 5:06 p.m.