pub fn save_nifti_to_file(
path: &Path,
data: &[f64],
dims: (usize, usize, usize),
voxel_size: (f64, f64, f64),
affine: &[f64; 16],
) -> Result<(), String>Expand description
Save NIfTI data to a file
If the path ends with .nii.gz, the file is gzip compressed. Otherwise it is saved as uncompressed .nii.