博客
关于我
Open3D 读取、显示、保存图片
阅读量:611 次
发布时间:2019-03-12

本文共 378 字,大约阅读时间需要 1 分钟。

Open3D 图像处理功能说明

一、主要功能

在 Open3D 中,我们可以通过 o3d.io.read_image('y7.png') 读取图片数据,支持的格式包括 JPG 和 PNG。

通过 print(img) 可以快速获取图片的尺寸信息。
写入图片文件可以使用 o3d.io.write_image('天使.jpg', img),同样支持 JPG 和 PNG 格式。
最后,通过 o3d.visualization.draw_geometries() 接口可以将图片与几何体绘制在一起进行展示。

二、代码实现

以下是 Open3D 图像处理功能的代码示例:

```pythonimport open3d as o3dprint("Testing IO for images")img = o3d.io.read_image('y7.png')```

转载地址:http://vrexz.baihongyu.com/

你可能感兴趣的文章
object detection训练自己数据
查看>>
object detection错误Message type "object_detection.protos.SsdFeatureExtractor" has no field named "bat
查看>>
object detection错误之Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
查看>>
object detection错误之no module named nets
查看>>
Object of type 'ndarray' is not JSON serializable
查看>>
Object Oriented Programming in JavaScript
查看>>
object references an unsaved transient instance - save the transient instance before flushing
查看>>
Object.assign用法
查看>>
Object.create
查看>>
Object.keys()的详解和用法
查看>>
objectForKey与valueForKey在NSDictionary中的差异
查看>>
Objective - C 小谈:消息机制的原理与使用
查看>>
OBJECTIVE C (XCODE) 绘图功能简介(转载)
查看>>
Objective-C ---JSON 解析 和 KVC
查看>>
Objective-C 编码规范
查看>>
Objective-Cfor循环实现Factorial阶乘算法 (附完整源码)
查看>>
Objective-C——判断对象等同性
查看>>
objective-c中的内存管理
查看>>
Objective-C之成魔之路【7-类、对象和方法】
查看>>
Objective-C享元模式(Flyweight)
查看>>