save_images

save_images(images, image_format='jpg', names='', directory=None)[source]

Save all images.

This saves all images in a stack to a given directory in the given file format.

Parameters
images: iterable

An iterable like ImageStack with images represented as np.ndarray

image_format: str, optional

The format in which to save the images. Default is jpg.

names: list, optional

A list of names corresponding to the images. If none is entered the images will be saved as 1.jpg, 2.jpg, … If these names have extensions for the image format, this extension is ignored. All images are saved with image_format

directory: str, optional

Path to the directory where the images should be saved. If the path does not exist it is created. Default is the current working directory