To extract the road-plane from a lidar point cloud in Matlab, you can use a segmentation approach based on RANSAC algorithm. Here are the steps:
pcread
function.main.m38 chars2 lines
pcfitplane
function.main.m46 chars2 lines
Here, 0.3 is the maximum distance threshold between the points and the estimated plane.
select
function.main.m72 chars2 lines
findPointsInROI
function finds the points within the minimum and maximum distance limits from the ground plane.
main.m22 chars2 lines
Now you have extracted the road plane from the lidar point cloud in Matlab.
gistlibby LogSnag