io
#
|
Load a cube map texture from a list of 6 images. |
|
Load an image. |
|
Load a text file. |
|
Save a 2d or 3d image. |
|
Load a vtk polydata to a supported format file. |
|
Save a vtk polydata to a supported format file. |
|
Process and load sprites from a sprite sheet. |
load_cubemap_texture#
load_image#
load_text#
save_image#
- fury.io.save_image(arr, filename, *, compression_quality=75, compression_type='deflation', use_pillow=True, dpi=(72, 72))[source]#
Save a 2d or 3d image.
Expect an image with the following shape: (H, W) or (H, W, 1) or (H, W, 3) or (H, W, 4).
- Parameters:
arr (ndarray) – array to save
filename (string) – should be png, bmp, jpeg or jpg files
compression_quality (int, optional) – compression_quality for jpeg data. 0 = Low quality, 100 = High quality
compression_type (str, optional) – compression type for tiff file select between: None, lzw, deflation (default)
use_pillow (bool, optional) – Use imageio python library to save the files.
dpi (float or (float, float)) – Dots per inch (dpi) for saved image. Single values are applied as dpi for both dimensions.