extracting road from lidar
Show older comments
Hi,
I have an intensity image of lidar and already import to matlab. I already use canny method as the shown result below The question is how we want to create a specific coding to ask matlab to extract the edge of the road (both side)?
I really really need help here. Thank you.

Answers (2)
Benjamin Thompson
on 13 Jun 2022
0 votes
Hard to tell without sample images but if the road is consistently a big black thing, use imclose to help make the edges solid and then regionsprops or vision.blobanalysis to identify the biggest black region. You may be able to use imfilll to remove the holes in the middle of the road also.
Peter Fryscak
on 15 Jan 2023
0 votes
This might also be helpful (although it requires additional software): Generate RoadRunner Scene from Recorded Lidar Data - MATLAB & Simulink (mathworks.com)
Categories
Find more on Labeling, Segmentation, and Detection in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!