Convert 3DPointCloud into a plot XY (2D)

9 ビュー (過去 30 日間)
Ramón Fernández de Caleya
Ramón Fernández de Caleya 2023 年 1 月 10 日
編集済み: Adam Danz 2023 年 1 月 10 日
I need to transform a PointCloud to a plot of it from the XY plane, that is, from above. Thank you for answering

回答 (1 件)

Adam Danz
Adam Danz 2023 年 1 月 10 日
編集済み: Adam Danz 2023 年 1 月 10 日
If the goal is to view the pointcloud from the top to see the XY plane, there's no need to replot the data.
  1. To view a 3D axes from above, looking down on the XY plane, use view(2).
  2. To remove the depth perspective, change the projection to orthogonal.
load("xyzPoints")
pc = pointCloud(xyzPoints);
tiledlayout(2,2)
nexttile([2,1])
pcshow(pc)
title('3D')
axis on
box on
nexttile
pcshow(pc)
view(2)
title('2D perspective')
axis on
box on
nexttile
pcshow(pc)
view(2)
title('2D orthographic')
axis on
set(gca, 'Projection','Orthographic')
box on
However, if you really want to replot the (X,Y) values,
figure()
scatter(xyzPoints(:,1), xyzPoints(:,2), 10, xyzPoints(:,3),'.')
axis equal
grid on
title('2D scatter')

カテゴリ

Help Center および File ExchangePreprocessing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by