Write
Functions relating to writing image files of different formats.
WriteFunc
get_write_func(data_type)
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 |
()
|
|
**kwargs
|
Keyword arguments passed to |
{}
|
Raises:
| Type | Description |
|---|---|
ValueError
|
When the file extension of |