extraction road from lidar

1 回表示 (過去 30 日間)
nur shafinaz
nur shafinaz 2015 年 11 月 18 日
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.

回答 (1 件)

Constantino Carlos Reyes-Aldasoro
Constantino Carlos Reyes-Aldasoro 2022 年 10 月 4 日
This can be solved by using a combination of morphological operators and image processing steps:
1) label all the regions that are not the edges, say your current image is called imageWithEdges e.g. bwlabel(1-imageWithEdges). That will have a series of regions (i.e. superpixels), and the largest one is the road itself.
2) Use regionprops to find the area of all the regions. Select the one with the largest area as the road.
3) Fill the region as it will have some holes with imfill holes.
4) Find the edges of the new region, and thar would be a very good approximation to the edges of the road.
Hope this solves your problem.

カテゴリ

Help Center および File ExchangeLabeling, Segmentation, and Detection についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by