lookup_dim: Helper function to obtain the dimensions of a 4D file

lookup_dimR Documentation

Helper function to obtain the dimensions of a 4D file

Description

Helper function to obtain the dimensions of a 4D file

Usage

lookup_dim(nifti)

Arguments

nifti

a 4D nifti file

Details

This function prefers to use fslval instead of an internal R library because both oro.nifti and RNifti are rather slow to obtain a single value from the NIfTI header

Value

a named vector of dimensions for the input (dim_x, dim_y, dim_z)


UNCDEPENdLab/fmri.pipeline documentation built on April 3, 2025, 3:21 p.m.