numpy_to_texture#
- numpy_to_texture(image)[source]#
Convert a NumPy image array to a
pyvista.Texture.- Parameters:
- image
numpy.ndarray NumPy image array. Texture datatype expected to be
np.uint8.
- image
- Returns:
pyvista.TexturePyVista texture.
Examples#
Used In#
Gallery Examples