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

Description Usage Arguments Value

View source: R/write_nifti2.R

Description

Create NIFTI v2 header suitable for given data.

Usage

1

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 Feb. 11, 2022, 5:06 p.m.