Fitting plane to a 3D point cloud using pcfitplane

조회 수: 11 (최근 30일)
Siddhant Loya
Siddhant Loya 2016년 8월 27일
답변: Witek Jachimczyk 2025년 12월 11일 23:05
I am trying to fit plane to a 3D point cloud using the pcfitplane method.
Is this the correct approach.
When I plot this I am not getting any plane in the window.
ptCloud1 = pointCloud(rand(200,3,'single'));
figure
pcshow(ptCloud1, 'MarkerSize',50)
[model, inlier, outlier] = pcfitplane(ptCloud1,0.05,[0,0,1], 5);
plane1 = select(ptCloud1, inlier);
pcshow(plane1)
% p1 = pointCloud(a);
Output : -
  댓글 수: 1
mithu max
mithu max 2017년 3월 27일
Can someone provide the mat function code for pcfitplane

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

답변 (1개)

Witek Jachimczyk
Witek Jachimczyk 2025년 12월 11일 23:05

You're most likely not getting anything because you might have picked a normal vector that doesn't work out or your max distance of individual points from the plane model is too tight. You can skip supplying the reference normal vector.

HTH

Witek

카테고리

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