segment point cloud data into clusters | The input point cloud must be organized (M-by-N-by-3)
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pavan Kumar B N
am 18 Jun. 2021
Kommentiert: Pavan Kumar B N
am 18 Jun. 2021
Hello All,
I am trying to segment 3D point cloud into clusters using pcap file. When I give pcdenoised cloud as a Input it throwing "The input point cloud must be organized (M-by-N-by-3)" . How to fix this problem?
veloReader = velodyneFileReader('data.pcap','VLP16');
xlimits = [-35 118];
ylimits = [-55 75];
zlimits = [-10 10];
player = pcplayer(xlimits,ylimits,zlimits);
for i = 1 : 600
ptCloud = veloReader.readFrame(i);
ptCloudIn = removeInvalidPoints(ptCloud);
ptcloudFil = pcdenoise(ptCloudIn);
groundPtsIdx = segmentGroundFromLidarData(ptCloudFil);
ptCloudWithoutGround = select(ptCloudFil,~groundPtsIdx,'OutputSize','full');
distThreshold =500;
[labels,numClusters] = segmentLidarData(ptCloudWithoutGround,distThreshold);
numClusters = numClusters+1;
labels(groundPtsIdx) = numClusters;
labelColorIndex = labels+1;
%colormap([hsv(numClusters);[0 0 0]]);
view(player,ptCloudFil.Location,labelColorIndex);
end
0 Kommentare
Akzeptierte Antwort
Sulaymon Eshkabilov
am 18 Jun. 2021
Probably, you'd need to generate meshes using meshgrid()
5 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Point Cloud Processing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!