フィルターのクリア

how to save pcap file after extracting groud plane

1 回表示 (過去 30 日間)
Pavan Kumar B N
Pavan Kumar B N 2021 年 6 月 5 日
編集済み: Pavan Kumar B N 2021 年 6 月 10 日
Hello,
I extracted ground data using 'segmentGroundFromLidarData(ptCloud)' form 3D lidar (Velodyne) data. How to save ground segmented data as a pcap file to use for the further process?
I tried to save using as below but it is not working out.
save('pointCloudTest.mat','ptCloud')
save GroudData.pcap groundPtsIdx
Please find the code:
veloReader = velodyneFileReader('lidar.pcap','VLP16');
for i = 1 : 597
% Read current frame.
ptCloud = veloReader.readFrame(i);
% Create label array.
colorLabels = zeros(size(ptCloud.Location,1),size(ptCloud.Location,2));
% Find the ground points.
groundPtsIdx = segmentGroundFromLidarData(ptCloud);
% Map color ground points to green.
colorLabels(groundPtsIdx (:)) = greenIdx;
% Map color nonground points to red.
colorLabels(~groundPtsIdx (:)) = redIdx;
%save('pointCloudTest.mat','ptCloud')
%save GroudData.pcap groundPtsIdx
view(player,ptCloud.Location,colorLabels)
end

回答 (0 件)

カテゴリ

Help Center および File ExchangePoint Cloud Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by