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.


neuroconductor/freesurferformats documentation built on May 20, 2021, 3:15 p.m.