MATLAB Answers

segmentGro​undFromLid​arData for pcd file

13 views (last 30 days)
Ahmed Iftekhar
Ahmed Iftekhar on 4 May 2020
Commented: Mahesh Taparia on 12 May 2020
I want to preprocess some lidar data in .pcd format. I tried "segmentGroundFromLidarData" algorithm to segment the groud but this code is written for .pcap format. In pcd fromat it has (m by n matrics size) on the other hand, pcap file has (m by n by 3 matrics) size.
Any thought of how to format pcd file into pcap file? or any other matlab libraries to deal with pcd file?


Sign in to comment.

Answers (1)

Mahesh Taparia
Mahesh Taparia on 11 May 2020
The input of the function segmentGroundFromLidarData will be a point cloud. You mentioned that your file is having mxn array. Are you using only intensity matrix as input? But the point cloud data will be in structure format and that structure will be the input to the function. For more information, you can refer to this example in documentation page.


Ahmed Iftekhar
Ahmed Iftekhar on 11 May 2020
Hi Thanks.
I followed that document page but basicly my problem is, I have pcd files with only x y z values. So, it is a m by n matrix. I need to convert it into pcap format, which is m by n by 3.
I do not know how to convert the pcd file into pcap.
Mahesh Taparia
Mahesh Taparia on 12 May 2020
It seems you are having an unorganised point cloud data. You can use pcfitplane function, refer to this documentation. You can refer to this question which is already answered in the community.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by