Expand description
NIfTI file I/O for WASM
Provides functions to load and save NIfTI files from/to byte arrays, suitable for use in WebAssembly where filesystem access is not available.
Structsยง
- Nifti
Data - NIfTI data loaded from bytes
Functionsยง
- get_
affine ๐ - Get affine transformation matrix from header
- get_
header_ ๐info - Get header info for diagnostics
- is_gzip ๐
- Check if bytes are gzip compressed
- load_
nifti - Load a NIfTI file from bytes
- load_
nifti_ 4d - Load a 4D NIfTI file from bytes (for multi-echo data)
- read_
nifti_ dims - Read only the dimensions from a NIfTI file header without loading volume data.
- read_
nifti_ file - Read a NIfTI file from a filesystem path
- save_
nifti - Save data as NIfTI bytes
- save_
nifti_ gz - Save data as gzipped NIfTI bytes (.nii.gz)
- save_
nifti_ to_ file - Save NIfTI data to a file