Skip to content

Tiff

Source

Write tiff function.

write_tiff(file_path, img, *args, **kwargs)

Write tiff files.

Parameters:

Name Type Description Default
file_path Path

Path to file.

required
img ndarray

Image data to save.

required
*args

Positional arguments passed to tifffile.imwrite.

()
**kwargs

Keyword arguments passed to tifffile.imwrite.

{}

Raises:

Type Description
ValueError

When the file extension of file_path does not match the Unix shell-style pattern '.tif'.