Skip to main content

Module nifti_io

Module nifti_io 

Source
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ยง

NiftiData
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