Tiff
Write tiff function.
write_tiff(file_path, img, *args, **kwargs)
Write tiff files.
Parameters:
-
file_path(Path) –Path to file.
-
img(ndarray) –Image data to save.
-
*args–Positional arguments passed to
tifffile.imwrite. -
**kwargs–Keyword arguments passed to
tifffile.imwrite.
Raises:
-
ValueError–When the file extension of
file_pathdoes not match the Unix shell-style pattern '.tif'.