フィルターのクリア

How to convert a point cloud to a 3-d surface

52 ビュー (過去 30 日間)
KEDI YAN
KEDI YAN 2020 年 1 月 9 日
コメント済み: KEDI YAN 2020 年 1 月 13 日
I have three set of datas and their corresponding values. For example, the value of point [x1(1),y(1),z(1)] is S21_1(1) or [x3(2),y(2),z(2)] is S21_3(2)
l = 110;
x1 = [3,3,3,3,3,3,3,3];
x2 = [5,5,5,5,5,5,5,5];
x3 = [8,8,8,8,8,8,8,8];
y = [l*sind(0),l*sind(1),l*sind(2),l*sind(3),l*sind(4),l*sind(5),l*sind(6),l*sind(7)];
z = [l-l*cosd(0),l-l*cosd(1),l-l*cosd(2),l-l*cosd(3),l-l*cosd(4),l-l*cosd(5),l-l*cosd(6),l-l*cosd(7)];
S21_1 = [-12.829,-13.591,-16.019,-20.054,-21.29,-22.542,-26.333,-30.121];
S21_2 = [-14.76,-15.357,-16.146,-19.42,-22.873,-29.781,-37.933,-46.454];
S21_3 = [-16.12,-15.243,-21.417,-24.621,-25.024,-26.114,-28.044,-30.751];
Using the following code to generate a point cloud
ptCloud1 = pointCloud([x1(:),y(:),z(:)],'Intensity',S21_1(:));
ptCloud2 = pointCloud([x2(:),y(:),z(:)],'Intensity',S21_2(:));
ptCloud3 = pointCloud([x3(:),y(:),z(:)],'Intensity',S21_3(:));
pcshow(ptCloud1,'MarkerSize',1000)
hold on
pcshow(ptCloud2,'MarkerSize',1000)
hold on
pcshow(ptCloud3,'MarkerSize',1000)
hold off
QQ截图20200109110617.jpg
My question is how do I convert the point cloud plot to a 3-d surface while maintain the intensity of each point so that the surface will have a gradient color that indicate the intensity change.

採用された回答

Soham Chakraborty
Soham Chakraborty 2020 年 1 月 13 日
  1 件のコメント
KEDI YAN
KEDI YAN 2020 年 1 月 13 日
Thanks. I acually figured it out after posting the question. I also checked the link and it used the same function as I did. Thanks though!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePoint Cloud Processing についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by