Convert unorganized point cloud (MX3) to organized point cloud (MXNX3)

조회 수: 6 (최근 30일)
Steve
Steve 2016년 5월 25일
답변: Anand 2019년 12월 6일
Hello all, I am wondering if there is a method to convert unorganized point cloud (MX3) to organized point cloud (MXNX3). The PLY format doesn't support organized format. I need to convert it to organized one in order to find the plane using pcfitplane like this method: http://www.mathworks.com/help/vision/ref/pcfitplane.html . Thanks

채택된 답변

Anand
Anand 2019년 12월 6일
You do not need to convert a pointCloud to organized form to use the pcfitplane function.
Here is an example:
% Read an unorganized point cloud
ptCloud = pcread('teapot.ply');
% The point cloud is unorganized, since Location property is M-by-3
disp(size(ptCloud.Location))
% Use pcfitplane
maxDistance = 0.5;
referenceVector = [0 0 1];
model = pcfitplane(ptCloud, maxDistance, referenceVector)
figure
pcshow(ptCloud)
hold on
plot(model)
If you are getting an error, could you please send reproduction steps and the release of MATLAB you are using (use the ver command).

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by