io
#
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
alias of |
|
|
Load a cube map texture from a list of 6 images. |
|
Load an image. |
|
Load a vtk polydata to a supported format file. |
|
Process and load sprites from a sprite sheet. |
|
Load a text file. |
|
Save a 2d or 3d image. |
|
Save a vtk polydata to a supported format file. |
|
Set Generic input function which takes into account VTK 5 or 6. |
|
Retrieve a URL into a temporary location on disk. |
BMPReader
#
- fury.io.BMPReader#
alias of
vtkBMPReader
BMPWriter
#
- fury.io.BMPWriter#
alias of
vtkBMPWriter
ImageData
#
- fury.io.ImageData#
alias of
vtkImageData
ImageFlip
#
- fury.io.ImageFlip#
alias of
vtkImageFlip
InTemporaryDirectory
#
- fury.io.InTemporaryDirectory#
alias of
TemporaryDirectory
JPEGReader
#
- fury.io.JPEGReader#
alias of
vtkJPEGReader
JPEGWriter
#
- fury.io.JPEGWriter#
alias of
vtkJPEGWriter
MNIObjectReader
#
- fury.io.MNIObjectReader#
alias of
vtkMNIObjectReader
MNIObjectWriter
#
- fury.io.MNIObjectWriter#
alias of
vtkMNIObjectWriter
OBJReader
#
- fury.io.OBJReader#
alias of
vtkOBJReader
PLYReader
#
- fury.io.PLYReader#
alias of
vtkPLYReader
PLYWriter
#
- fury.io.PLYWriter#
alias of
vtkPLYWriter
PNGReader
#
- fury.io.PNGReader#
alias of
vtkPNGReader
PNGWriter
#
- fury.io.PNGWriter#
alias of
vtkPNGWriter
PolyDataReader
#
- fury.io.PolyDataReader#
alias of
vtkPolyDataReader
PolyDataWriter
#
- fury.io.PolyDataWriter#
alias of
vtkPolyDataWriter
STLReader
#
- fury.io.STLReader#
alias of
vtkSTLReader
STLWriter
#
- fury.io.STLWriter#
alias of
vtkSTLWriter
TIFFReader
#
- fury.io.TIFFReader#
alias of
vtkTIFFReader
TIFFWriter
#
- fury.io.TIFFWriter#
alias of
vtkTIFFWriter
Texture
#
- fury.io.Texture#
alias of
vtkTexture
XMLPolyDataReader
#
- fury.io.XMLPolyDataReader#
alias of
vtkXMLPolyDataReader
XMLPolyDataWriter
#
- fury.io.XMLPolyDataWriter#
alias of
vtkXMLPolyDataWriter
load_cubemap_texture#
load_image#
load_polydata#
load_sprite_sheet#
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.
save_polydata#
set_input#
- fury.io.set_input(vtk_object, inp)[source]#
Set Generic input function which takes into account VTK 5 or 6.
- Parameters:
vtk_object (vtk object) –
inp (vtkPolyData or vtkImageData or vtkAlgorithmOutput) –
- Return type:
vtk_object
Notes
- This can be used in the following way::
from fury.utils import set_input poly_mapper = set_input(PolyDataMapper(), poly_data)
urlretrieve#
- fury.io.urlretrieve(url, filename=None, reporthook=None, data=None)[source]#
Retrieve a URL into a temporary location on disk.
Requires a URL argument. If a filename is passed, it is used as the temporary file location. The reporthook argument should be a callable that accepts a block number, a read size, and the total file size of the URL target. The data argument should be valid URL encoded data.
If a filename is passed and the URL points to a local resource, the result is a copy from local file to new file.
Returns a tuple containing the path to the newly created data file as well as the resulting HTTPMessage object.