R/convert_pixunits.R

Defines functions pixunits

pixunits = function(xyzt_units) {
    img = updateNifti(
        image = array(1, dim = rep(1, 3)),
        template = list(xyzt_units = xyzt_units))
    attributes(RNifti::niftiHeader(img))$pixunits
}
neuroconductor/NiftiArray documentation built on May 23, 2021, 8:40 a.m.