Fitting plane to a 3D point cloud using pcfitplane

10 ビュー (過去 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 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