How to read and visualize my lidar data?

30 次查看(过去 30 天)
Hi All,
My lidar data is in bin file :
Anyone here has any idea how to read my lidar data in MATLAB?
  3 个评论
Kevin Chng
Kevin Chng 2019-4-16
I'm not sure with that, i download the data from the link below:
personally, I feel they should be in pcd file, somehow the downloaded file is bin.
I have tried
fid = fopen('n008-2018-08-01-15-16-36-0400__LIDAR_TOP__1533151061547455.pcd.bin', 'r');
data = fread(fid, '*int16');
fclose(fid);
I get a series of numeric data (one column), should i restructure it to 3 coloumns to represent x,y,z? Any insight?
KSSV
KSSV 2019-4-16
Actually after reading the data using fread it will be reshaped to required dimension using reshape. To achieve this format of the file should be known.

请先登录,再进行评论。

采纳的回答

KSSV
KSSV 2019-4-16
Is this fine?
fid = fopen('n008-2018-08-01-15-16-36-0400__LIDAR_TOP__1533151061547455.pcd.bin', 'r');
data = fread(fid,'single');
fclose(fid);
data = reshape(data,[],2) ;
plot(data(:,1),data(:,2),'.r')

更多回答(1 个)

TripleSSSS
TripleSSSS 2020-4-30
Read the data as a float using fread.
For nusences dataset each point in the point cloud contains 5 floats. reshape the data and use pcshow for display.

类别

Help CenterFile Exchange 中查找有关 Image Processing and Computer Vision 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by