data types {tractor.base}R Documentation

MriImage data types

Description

Convert a numeric type code into the image data type specifier used in MriImage objects.

Usage

getDataTypeByNiftiCode(code)

Arguments

code A numeric value indicating the data type code required. Supported values in TractoR are 2 (8 bit unsigned integer), 4 (16 bit signed integer), 8 (32 bit signed integer), 16 (32 bit floating point), 64 (64 bit floating point), 256 (8 bit signed integer), 512 (16 bit unsigned integer) and 768 (32 bit unsigned integer).

Value

A list with the following elements

type An R storage mode, either integer or double.
size The number of bytes per voxel in this data type.
isSigned Logical value indicating whether data values are signed.

Author(s)

Jon Clayden

See Also

MriImage, and the NIfTI-1 standard (http://nifti.nimh.nih.gov/nifti-1).


[Package tractor.base version 1.1.0 Index]