ni2header.for.data: Create NIFTI v2 header suitable for given data.

View source: R/write_nifti2.R

ni2header.for.dataR Documentation

Create NIFTI v2 header suitable for given data.

Description

Create NIFTI v2 header suitable for given data.

Usage

ni2header.for.data(niidata)

Arguments

niidata

array of numeric (integer or double) data, can have up to 7 dimensions.

Value

a NIFTI v2 header (see ni2header.template) in which the datatype, bitpix, dim and dim_raw fields have been set to values suitable for the given data. Feel free to change the other fields.


freesurferformats documentation built on May 29, 2024, 5:29 a.m.