Writer
The writer
module provides ways to write image data.
WriterImage module
WriterImage
WriterImage class that provide methods to save and show the image
Source code in otary/image/components/io/writer.py
save(fp)
Save the image in a local file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
str
|
fp stands for filepath which is the path to the file |
required |
show(figsize=(-1, -1), popup_window_display=False)
Show the image
Parameters:
Name | Type | Description | Default |
---|---|---|---|
figsize
|
tuple[float, float]
|
size of the figure. Defaults to (-1, -1), meaning the original size of the image. |
(-1, -1)
|
popup_window_display
|
bool
|
whether to display the image in a popup window. Defaults to False. |
False
|