pub fn save_nifti_4d_to_file(
path: &Path,
volumes: &[&[f64]],
dims: (usize, usize, usize),
voxel_size: (f64, f64, f64),
affine: &[f64; 16],
) -> Result<(), String>Expand description
Save several 3D volumes as one 4D NIfTI file (see save_nifti_4d).
If the path ends with .nii.gz, the file is gzip compressed. Otherwise it is saved as uncompressed .nii.