当前位置:网站首页>Conversion between pointcloud and numpy arrays in open3d
Conversion between pointcloud and numpy arrays in open3d
2022-06-28 14:34:00 【Jianghu night rain ABC】
open3d In the use of open3d.io.read_point_cloud() After reading point cloud data , The return is pointcloud Data of type , Sometimes I wish I could use numpy Handle point clouds , At this time, the conversion between the two is required ( Strictly speaking, the data is just copied and then transmitted ).
1.pointcloud convert to numpy
import numpy as np
import open3d as o3d
A=[]
pcd=o3d.io.read_point_cloud("/bunny.ply")# The path should be set according to the actual situation
A=np.asarray(pcd.points)#A Has become a n*3 Matrix
print(A)
2.numpy The data in the array is converted into pointcloud
# here B Is already a n*3 Of numpy.ndarray( That is, common array types )
pcd=o3d.geometry.PointCloud()# Instantiate a pointcloud class
pcd.points=o3d.utility.Vector3dVector(B)# Pass in coordinate data to this class , here pcd.points It is already a point cloud
o3d.visualization.draw_geometries([pcd.points])# Show me
边栏推荐
- 2022金属非金属矿山(地下矿山)主要负责人考试模拟100题模拟考试平台操作
- Deveco studio 3.0 editor configuration tips
- 基于 Nebula Graph 构建百亿关系知识图谱实践
- Opengauss kernel: analysis of SQL parsing process
- 一个bug肝一周...忍不住提了issue
- @Controlleradvice + @exceptionhandler handles controller layer exceptions globally
- How to design data visualization platform
- Reverse a stack with recursive functions and stack operations only
- 猫狗队列
- Single responsibility principle
猜你喜欢

2022下半年软考考试时间安排已确定!

Flutter series: offstage in flutter

Tencent cloud international ECS has no network after logging in. How to troubleshoot?

外贸SEO 站长工具

Why can't Bert completely kill the BM25??

字节跳动埋点数据流建设与治理实践

名创优品通过上市聆讯:寻求双重主要上市 年营收91亿
![[Zhongyi Xinsheng] 5 SPI interface test TF Card](/img/d9/56ded362b3055f4f0efc3ce0eec5d5.jpg)
[Zhongyi Xinsheng] 5 SPI interface test TF Card

腾讯再遭大股东Prosus减持:后者还从京东套现37亿美元

中国内地仅四家突围 联想智慧颐和园荣获 “2022年IDC亚太区智慧城市大奖”
随机推荐
Play NAS home NAS server setup scheme "suggestions collection"
Tencent was underweight again by prosus, the major shareholder: the latter also cashed out $3.7 billion from JD
基于ASP的勤工俭学管理系统
PC博物馆-熟悉又陌生的懵懂年代
Four visualization tools are recommended to solve 99% of large screen visualization projects!
Rslo: self supervised lidar odometer (real time + high precision, icra2022)
一个bug肝一周...忍不住提了issue
dolphinscheduler2.X的安装(亲测有效)
基于 Nebula Graph 构建百亿关系知识图谱实践
2022金属非金属矿山(地下矿山)主要负责人考试模拟100题模拟考试平台操作
[Zhongyi Xinsheng] 5 SPI interface test TF Card
使用LamdbaUpdateWrapper的setSql作用及风险
Practice of constructing ten billion relationship knowledge map based on Nebula graph
3. Overall UI architecture of the project
Which is safer, a securities company or a bank? How to open an account is the safest
2022 questions d'examen pour les cuisiniers chinois (Senior) et l'examen de simulation en ligne
增额终身寿险有哪些产品可以买呢?
荐书丨《大脑通信员》:如果爱情只是化学反应,那还能相信爱情吗?
Summary of 2021 computer level III database
Ionq and Ge research confirmed that quantum computing has great potential in risk aggregation