- https://www.mathworks.com/help/lidar/ref/pcsemanticseg.html
- https://in.mathworks.com/help/matlab/ref/matlab.buildtool.io.filecollection.select.html
After classifying the LiDAR point cloud using deep learning, can I remove specific objects?
7 ビュー (過去 30 日間)
古いコメントを表示
Hi, everyone.
I am new to MATLAB.
This page classifies point cloud data by object.
Is it possible to delete only certain types of objects from the point cloud data?
0 件のコメント
回答 (1 件)
Manish
2024 年 11 月 29 日 8:57
Hi Motoki,
I understand that you want to remove a certain type of object from the point cloud after classification using deep learning.
You can achieve this by identifying the label you wish to eliminate.
Then, select all the points corresponding to that label and remove them from the point cloud. Extract the points you want to keep and use the ‘select’ function to create a new point cloud with only those points.
Here is the sample code below:
% Read the test data and perform semantic segmentation
I = read(imdsTest);
predictedResult = pcsemanticseg(I, net, "Classes", classNames);
% index for "car" in classNames
carLabel = find(strcmp(classNames, "car"));
% points to keep (i.e., not cars)
pointsToKeep = predictedResult ~= carLabel;
filteredPtCloud = select(I, pointsToKeep);% filtered point cloud
figure;
pcshow(filteredPtCloud);
Refer the below documentation links for better understanding:
Hope it Helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Labeling, Segmentation, and Detection についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!