imageio.v2.mvolwrite(uri, vols, format=None, **kwargs)[source]#

Write multiple volumes to the specified file.

uri{str, pathlib.Path, file}

The resource to write the volumes to, e.g. a filename, pathlib.Path or file object, see the docs for more info.

imssequence of numpy arrays

The image data. Each array must be NxMxL (or NxMxLxK if each voxel is a tuple).


The format to use to read the file. By default imageio selects the appropriate for you based on the filename and its contents.


Further keyword arguments are passed to the writer. See help() to see what arguments are available for a particular format.