Hello,
I would like to project the selected section of point cloud data to ground OR flat. As we can see its like ramp but i need it flat. May i know to do it without loss of distance or data (not considerable amount). This is from .pcd file and collected using a LiDAR. This is a map of outside environment.
Kindly some suggestions ASAP

 채택된 답변

Abhisek Pradhan
Abhisek Pradhan 2019년 9월 18일

1 개 추천

Use pcread to read point cloud from PLY or PCD file. And extract the selected portion of data points using findPointsInROI. An the use segmentGroundFromLidarDatato segment ground points from organized lidar data.
Please refer the following link for more information.

댓글 수: 4

Abhinand Gonibedu Dathatri
Abhinand Gonibedu Dathatri 2019년 9월 19일
편집: Abhinand Gonibedu Dathatri 2019년 9월 23일
Thanks! I had actually tried this process, but did not execute it properly. I am unable to execute this line of code: groundPtsIdx = segmentGroundFromLidarData(ld.ptCloud);
I tried the example the format matches, still not able to understand which "ptCloud" point cloud object is this referring to. When i put my point cloud object i got this : Reference to non-existent field 'ptCloudB'. I got this ptCloudB point cloud object by reading a ".pcd" file using pcread.
My .mat file has only x, y, z column but their mat file has point cloud object (with location colour intensity etc. arrays) in the mat file.
Error: The input point cloud must be organized (M-by-N-by-3).
i tried to convert and save but not happening.
The matlab is not accepting N x 1 matrix and N x 3 matrix.
Any suggestions ?
aws hawary
aws hawary 2020년 4월 13일
Hello
I have a question if anyone could help me
I got Data LIDAR files ( pcap and csv)
I wanna to apply that data but the files should be compatible with MATLAB platform .. How can I read all the frames of ply file .. I read the total of pcap but I need the frames #separately for each timestamp
Ahmed Iftekhar
Ahmed Iftekhar 2020년 5월 4일
Hello,
I want to preprocess some lidar data in .pcd format. I tried "segmentGroundFromLidarData" algorithm to segment the groud but this code is written for .pcap format. In pcd fromat it has (m by n matrics size) on the other hand, pcap file has (m by n by 3 matrics) size.
Any thought of how to format pcd file into pcap file? or any other matlab libraries to deal with pcd file?
SIncerely,
Ahmed
Pavan Kumar B N
Pavan Kumar B N 2021년 6월 16일
편집: Pavan Kumar B N 2021년 6월 18일
@Ahmed Iftekhar I hope it helps!
%% for PCAP files
veloReader = velodyneFileReader('file.pcap','VLP16');
ptCloudObj = readFrame(veloReader,44);
%% for PCD Files you use pcread
ptCloudObj = pcread('file.pcd');
ptCloudSegGround = pcdSegmentGround(ptCloudObj);
figure
pcshow(ptFilCloud)
hold on
plot(ptCloudSegGround)
function [model] = pcdSegmentGround(ptCloudSrc)
disp(size(ptCloudSrc.Location))
% Use pcfitplane
maxDistance = 0.2;
referenceVector = [0 0 1];
model = pcfitplane(ptCloudSrc, maxDistance, referenceVector)
end

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Community Treasure Hunt

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

Start Hunting!

Translated by