numpy_to_texture

numpy_to_texture(image)

Convert a NumPy image array to a vtk.vtkTexture.

Parameters
imagenumpy.ndarray

Numpy image array.

Returns
vtkTexture

VTK texture.