Learn R Programming

fslr (version 1.0)

datatype: Change Data type for img

Description

Tries to figure out the correct datatype for image. Useful for image masks - makes them binary if

Usage

datatype(img, datatype = NULL, bitpix = NULL, trybyte = TRUE)

Arguments

img
nifti object (or character of filename)
datatype
(NULL) character of datatype see convert.datatype
bitpix
(NULL) character of bitpix see convert.bitpix
trybyte
(logical) Should you try to make a byte (UINT8) if image in c(0, 1)?

Value

  • object of type nifti