日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

点云数据格式说明

發(fā)布時(shí)間:2023/12/20 编程问答 43 豆豆
生活随笔 收集整理的這篇文章主要介紹了 点云数据格式说明 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1. LiDAR點(diǎn)云數(shù)據(jù)

LiDAR,是Light Detection and Ranging即光探測和測距的縮寫。

常見點(diǎn)云文件格式如下:

.las,.laz(LiDAR數(shù)據(jù)的工業(yè)標(biāo)準(zhǔn)格式,是一種二進(jìn)制文件格式)
.pcd(PCL庫官方指定格式)
.obj(是由Alias|Wavefront Techonologies公司從幾何學(xué)上定義的3D模型文件格式,是一種文本文件)
.pcap(現(xiàn)在流行的Velodyne公司出品的激光雷達(dá)默認(rèn)采集數(shù)據(jù)的二進(jìn)制文件格式)
.ply(一種由斯坦福大學(xué)的Turk等人設(shè)計(jì)開發(fā)的多邊形文件格式,因而也被成為斯坦福三角格式。文件格式有文本和二進(jìn)制兩種格式)
.pts(被稱之為最簡便的點(diǎn)云格式,屬于文本格式。只包含點(diǎn)坐標(biāo)信息,按X Y Z順序存儲)
.xyz,.txt(一種文本格式)
LAS是點(diǎn)云文件的一種,LAS文件是根據(jù)幾種規(guī)格打包的二進(jìn)制文件,LAS文件只要是倆部分:點(diǎn)云規(guī)格、點(diǎn)云點(diǎn)數(shù)據(jù);

las格式作為點(diǎn)云數(shù)據(jù)的一種,常見于自動駕駛、高精地圖制作的使用中。las文件旨在包含激光雷達(dá)點(diǎn)云數(shù)據(jù)記錄。

2.las格式版本

las文件是一個二進(jìn)制文件,其中定義的數(shù)據(jù)類型與C語言中數(shù)據(jù)類型一致。到目前為止,las共有6版分別是:

Superseded ASPRS LAS 1.4 Format Specification R14 March 26 2019 (PDF)

Superseded ASPRS LAS 1.4 Format Specification R13 July 15 2013 (PDF)

Superseded ASPRS LAS 1.3 Format Specification October 24 2010 (PDF)

Superseded ASPRS LAS 1.2 Format Specification September 2 2008 (PDF)

Superseded ASPRS LAS 1.1 Format Standard May 7 2005 (PDF)

Superseded ASPRS LAS 1.0 Format Standard May 9 2003 (PDF)


3. las數(shù)據(jù)類型

序號數(shù)據(jù)類型字節(jié)數(shù)
1char1?
2unsigned char1?
3short2?
4unsigned short2?
5long4?
6unsigned long4
7double8

?Python常用于解析點(diǎn)云數(shù)據(jù),Python數(shù)據(jù)類型與C語言數(shù)據(jù)類型對應(yīng)關(guān)系,具體可參考鏈接?struct解析二進(jìn)制數(shù)據(jù)

Format

C Type

Python type

Standard size

Notes

x

pad byte

no value

c

char

bytes of length 1

1

b

signed char

integer

1

(1), (2)

B

unsigned char

integer

1

(2)

?

_Bool

bool

1

(1)

h

short

integer

2

(2)

H

unsigned short

integer

2

(2)

i

int

integer

4

(2)

I

unsigned int

integer

4

(2)

l

long

integer

4

(2)

L

unsigned long

integer

4

(2)

q

long long

integer

8

(2)

Q

unsigned long long

integer

8

(2)

n

ssize_t

integer

(3)

N

size_t

integer

(3)

e

(6)

float

2

(4)

f

float

float

4

(4)

d

double

float

8

(4)

s

char[]

bytes

p

char[]

bytes

P

void*

integer

(5)

4. las格式的完整構(gòu)成

序號las1.0~las1.2las1.3~las1.4中文說明
1PUBLIC HEADER BLOCKPUBLIC HEADER BLOCK公共頭
2VARIABLE LENGTH RECORDSVARIABLE LENGTH RECORDS(VLR)可變長度記錄域
3POINT DATA RECORDSPOINT DATA RECORDS點(diǎn)數(shù)據(jù)記錄域
4EXTENDED VARIABLE LENGTH RECORDS (EVLR)擴(kuò)展可變長度記錄域

5.公共頭不同版本構(gòu)成

以 las1.2為例列出公共頭信息如下表。其它不同版本有不同程度增刪,具體詳見上述官方鏈接。

序號類別格式字節(jié)數(shù)必須las版本備注
1File Signature (“LASF”)char[4]4*1.1~1.4
2File Source IDunsigned short2*
3Global Encodingunsigned short2*
4Project ID - GUID data 1unsigned long4
5Project ID - GUID data 2unsigned short2
6Project ID - GUID data 3unsigned short2
7Project ID - GUID data 4unsigned char[8]8
8Version Majorunsigned char1*1.1~1.4
9Version Minorunsigned char1*1.1~1.4
10System Identifierchar[32]32*
11Generating Softwarechar[32]32*
12File Creation Day of Yearunsigned short2*
13File Creation Yearunsigned short2
14Header Sizeunsigned short2
15Offset to point dataunsigned long4*
16Number of Variable Length Recordsunsigned long4*
17Point Data Format ID (0-99 for spec)unsigned char1*
18Point Data Record Lengthunsigned short2*
19Number of point recordsunsigned long4*
20Number of points by returnunsigned long[5]20*
21X scale factordouble8*1.1~1.4
22Y scale factordouble8*1.1~1.4
23Z scale factordouble8*1.1~1.4
24X offsetdouble8*1.1~1.4
25Y offsetdouble8*1.1~1.4
26Z offsetdouble8*1.1~1.4
27Max Xdouble8*1.1~1.4
28Min Xdouble8*1.1~1.4
29Max Ydouble8*1.1~1.4
30Min Ydouble8*1.1~1.4
31Max Zdouble8*1.1~1.4
32Min Zdouble8*1.1~1.4

6.坐標(biāo)轉(zhuǎn)換關(guān)系

7.點(diǎn)數(shù)據(jù)記錄格式?

在las1.0版本中定義了點(diǎn)數(shù)據(jù)格式0,其一共20(12+8)字節(jié)數(shù)據(jù),在las1.0~las1.4的版本中點(diǎn)數(shù)據(jù)格式1到5都是在點(diǎn)數(shù)據(jù)格式0基礎(chǔ)上增添字段。詳見上述鏈接對應(yīng)的官方文檔。

在las1.4版本中增加了點(diǎn)格式6,其一共30字節(jié)數(shù)據(jù),在las1.4版本中點(diǎn)格式7到10都是在點(diǎn)數(shù)據(jù)格式6基礎(chǔ)上增添字段。詳見上述鏈接對應(yīng)的官方文檔。

不同版本las對應(yīng)的點(diǎn)數(shù)據(jù)格式匯總?cè)缦卤怼?/p>

Las FormatPoint? Data Record Format
1.0,1.10, 1
1.20, 1, 2, 3
1.30, 1, 2, 3, 4, 5
1.40, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

不同版本對應(yīng)的點(diǎn)數(shù)據(jù)記錄數(shù)匯總?cè)缦?#xff1a;

?

?

?

8.點(diǎn)云數(shù)據(jù)常用信息

利用點(diǎn)云數(shù)據(jù)解析結(jié)果,用于點(diǎn)云分割,道路標(biāo)線特征提取與矢量化等自動駕駛相關(guān)的應(yīng)用場景,上述不同版本點(diǎn)云數(shù)據(jù)比較常用的信息如下表。其中強(qiáng)度值與RGB值可二取一或二者有之,兩者都有時(shí)效果更佳。

序號項(xiàng)目說明備注
1XX坐標(biāo)必須
2YY坐標(biāo)必須
3ZZ坐標(biāo)必須
4Intensity反射強(qiáng)度可選
5R點(diǎn)Red顏色通道值可選
6G點(diǎn)Green顏色通道值可選
7B點(diǎn)Blue顏色通道值可選

9.解析庫與可視化工具

常用的解析las點(diǎn)云數(shù)據(jù)的python庫有l(wèi)aspy,?plcpy

常用的顯示點(diǎn)云數(shù)據(jù)的軟件有CloudCompare,QGIS(3.20或以上),matlab(2018a或以上)

總結(jié)

以上是生活随笔為你收集整理的点云数据格式说明的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。