该函数用于清空当前RGBD图像。
clear(self)
该函数无参数。
该函数没有返回值。
import open3d as o3d
# 构建RGBD图像
depth = o3d.geometry.Image(np.zeros((480, 640), dtype=np.uint16))
color = o3d.geometry.Image(np.zeros((480, 640, 3), dtype=np.uint8))
rgbd_image = o3d.geometry.RGBDImage.create_from_color_and_depth(color, depth)
# 清空RGBD图像
rgbd_image.clear()
该示例代码演示了如何构建一个RGBD图像,并使用该函数清空该图像。
该函数没有定义任何异常。