get_image_depth#
- Plotter.get_image_depth(fill_value=nan, reset_camera_clipping_range=True)#
Return a depth image representing current render window.
- Parameters
- Returns
numpy.ndarray
Image of depth values from camera orthogonal to image plane.
Notes
Values in image_depth are negative to adhere to a right-handed coordinate system.
Examples
>>> import pyvista >>> plotter = pyvista.Plotter() >>> actor = plotter.add_mesh(pyvista.Sphere()) >>> plotter.store_image = True >>> plotter.show()
>>> zval = plotter.get_image_depth()