Is there a substitute for pcshow()?

3 ビュー (過去 30 日間)
lucca k
lucca k 2015 年 10 月 19 日
回答済み: Dima Lisin 2015 年 10 月 31 日
Hello,
I got a 3D point cloud with " xyzPoints = depthToPointCloud(depthImage,depthDevice)". As I only have 2015a "pcshow" doesn't work. Is there a substitute command?
Thanks in advance!
  4 件のコメント
Image Analyst
Image Analyst 2015 年 10 月 22 日
It looks like that pcshow() is in the Computer Vision System Toolbox, so you must have installed that too. It's now in the product list so maybe the developer will see it and answer.
lucca k
lucca k 2015 年 10 月 22 日
pcshow() was implemented in 2015b. As I only have access to 2015a it can't work for me I think.

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

採用された回答

Walter Roberson
Walter Roberson 2015 年 10 月 19 日
xyz = get(xyzPoints, 'location');
scatter3(xyz(:,1), xyz(:,2), xyz(:,3))
However, please show size(xyz) after the get(), as there is a different packing of values that might apply.
  21 件のコメント
lucca k
lucca k 2015 年 10 月 26 日
so walter do you think you can solve this? why is the array unstructured? maybe I need to get 2015b somehow...
lucca k
lucca k 2015 年 10 月 31 日
hey walter, it works now with that code:
showPointCloud(xyzPoints, 'VerticalAxis', 'y', 'VerticalAxisDir', 'down');
xlabel('X (m)');
ylabel('Y (m)');
zlabel('Z (m)');
Thank you very much for your help!

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

その他の回答 (1 件)

Dima Lisin
Dima Lisin 2015 年 10 月 31 日
In R2015a the equivalent function is called showPointCloud.

Community Treasure Hunt

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

Start Hunting!

Translated by