当前位置:网站首页>Open3d reads and writes PCD point cloud files
Open3d reads and writes PCD point cloud files
2022-04-21 09:07:00 【Coding leaves】
1 Open3d install
Open3d By Intel Released an open source library , Support rapid development and processing 3D data .Open3D stay c++ and Python A set of carefully chosen data structures and algorithms is exposed in . The back end is highly optimized , And it's set up for parallelization .
Open3d Use it directly pip Can be installed . Solve the problem of slow download , Please switch the download source . For setting method, please refer to :python pip_Coding Leaves blog -CSDN Blog .
pip install open3d
pcd For the introduction of point cloud format, please refer to : Introduction to point cloud format ( One )_Coding Leaves blog -CSDN Blog .
about pcd Point cloud file ,Open3d The read point cloud is usually stored in PointCloud Class , As shown in the figure below . The following figure points All point cloud coordinates are stored , It can be used numpy.array Transform to matrix form .

2 numpy turn PointCloud
For point cloud matrix , Usually convert to PointCloud The format can be Open3d Handle , Including storage and point cloud processing .
import open3d as o3d
pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(points_array)
3 read pcd Point cloud file
Open3d Read pcd The function of the format point cloud file is o3d.io.read_point_cloud, The read point cloud is stored as shown in the figure above PointCloud class .
import open3d as o3d
import numpy as np
pcd = o3d.io.read_point_cloud(path)
points = np.array(pcd.points) # Convert to matrix
4 Write pcd Point cloud file
The function to save the point cloud file is o3d.io.write_point_cloud.
o3d.io.write_point_cloud(path, pcd)
matters needing attention : In this way, the saved file can be open3d Direct reading , However, when reading in other ways, the following coding errors may occur , Therefore, it is best to specify the encoding method to save .
o3d.io.write_point_cloud(path, pcd , write_ascii=True)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdd in position 173: invalid continuation byte.
python 3D point cloud research program _Coding Leaves blog -CSDN Blog _python The 3D point cloud will be continuously updated according to the following directory …… Introduction to point cloud format 、 Point cloud visualization 、 Point cloud projection 、 Generate aerial view 、 Generate front view 、 Point cloud registration 、 Point cloud segmentation 、 Three dimensional target detection 、 Point cloud reconstruction 、 Deep learning point cloud algorithm ……https://blog.csdn.net/suiyingy/article/details/124017716 Introduction to point cloud format ( One )_Coding Leaves blog -CSDN There are some common ways of cloud storage for blogs pcd、ply、txt、bin file . This section focuses on the introduction pcd Point cloud format .https://blog.csdn.net/suiyingy/article/details/124170147 More 3D 、 Please pay attention to two-dimensional perception algorithm and financial quantitative analysis algorithm “ Lele perception school ” WeChat official account , And will continue to update .
版权声明
本文为[Coding leaves]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210901465702.html
边栏推荐
- Note 0104 MySQL advanced - index - Overview
- 2022 t elevator repair test questions and online simulation test
- BUUCTF[HCTF 2018]WarmUp
- Intranet penetration - proxy penetration - rights lifting - injection - MSF Middleware - domain penetration - log clearing - learning resources
- 受控组件与非受控组件
- Integrating sdl2 with ffmpeg to realize texture rendering of random blocks
- Netease blog is going to be closed. My article!
- 垃圾回收机制
- 方格分割【dfs】
- 1150: 数数多少个整数
猜你喜欢

2022年流动式起重机司机考试练习题模拟考试平台操作

Notes of the most complete grain mall in the whole network_ 02. Introduction to the overall effect of the project (2022-04-02)

L2-026 small generation (25 points)
![BUUCTF[HCTF 2018]WarmUp](/img/89/5d7d147dfb8e2bc10a2ff0bb68debe.png)
BUUCTF[HCTF 2018]WarmUp

OpenCV——分离颜色通道,图像对比度,亮度调整,离散傅里叶变换(10)

Penetration test - get the system fofa keyword to brush the hole

Getting started with object detection FAQs (deep learning / image classification)

Maya basic tutorial and basic operation explanation

LDO系列--PSRR

CC10000.CloudJenkins—————————————
随机推荐
Flink's API introduction case
Pyinstaller package exe (detailed tutorial)
ACTF2020 新生赛 Upload 1
2022年T电梯修理考题及在线模拟考试
A summary of school training
Drafting and Revision: Laplacian Pyramid Network for Fast High-Quality Artistic Style Transfer--T Li
笔记0104. MySQL 高级 - 索引 - 概述
BUUCTF[ACTF2020 新生赛]Include
OpenCV——分离颜色通道,图像对比度,亮度调整,离散傅里叶变换(10)
Open3d读写ply点云文件
2022年上海市安全员C证考试模拟100题及模拟考试
[GYCTF2020]Blacklist
ARPU, the user of China Mobile, has re entered the rising channel, and the salary of employees has also increased steadily
JS原型与原型链
Surfaceview high performance rendering (V) code practice - let the drawn picture move
L2-031 深入虎穴 (25 分)
原生与H5混合式开发详解
1171: 加密(指针专题)
1166: 实数取整(指针专题)
CC00043.CloudJenkins—————————————