Function: read_vol()
ts
function read_vol(input): Promise<NeuroVol>;Defined in: src/io/nifti.ts:18
Read a NIfTI file and return a NeuroVol.
Thin wrapper over readVol kept for backward compatibility. The single source of truth for NIfTI parsing (scl_slope/scl_inter scaling, endianness, affine reconstruction, gzip) lives in io.ts.
Parameters
input
string | ArrayBuffer
Path to the NIfTI file or an ArrayBuffer of its bytes.
Returns
Promise<NeuroVol>