picture¶
Submodule extending the vtkImageActor
object functionality.
Picture¶
-
class
vedo.picture.
Picture
(obj=None)[source]¶ Bases:
vtkRenderingCorePython.vtkImageActor
,vedo.base.Base3DProp
Derived class of
vtkImageActor
. Used to represent 2D pictures. Can be instantiated with a path file name or with a numpy array.Use Picture.shape to access the number of pixels in x and y.
-
blend
(pic, alpha1=0.5, alpha2=0.5)[source]¶ Take L, LA, RGB, or RGBA images as input and blends them according to the alpha values and/or the opacity setting for each input.
-