imsave
-
skimage.external.tifffile.imsave(filename, data, **kwargs)
[source] -
Write image data to TIFF file.
Refer to the TiffWriter class and member functions for documentation.
Parameters: filename : str
Name of file to write.
data : array_like
Input image. The last dimensions are assumed to be image depth, height, width, and samples.
kwargs : dict
Parameters ‘byteorder’, ‘bigtiff’, and ‘software’ are passed to the TiffWriter class. Parameters ‘photometric’, ‘planarconfig’, ‘resolution’, ‘description’, ‘compress’, ‘volume’, and ‘extratags’ are passed to the TiffWriter.save function.
Examples
>>> data = numpy.random.rand(2, 5, 3, 301, 219) >>> description = u'{"shape": %s}' % str(list(data.shape)) >>> imsave('temp.tif', data, compress=6, ... extratags=[(270, 's', 0, description, True)])
Please login to continue.