How can I extract xyz coordinates from a point cloud, given that the class is PointCloud instead of PointCloud2? Is there a way to convert the class type from PointCloud to PointCloud2?

19 ビュー (過去 30 日間)
I keep getting the error: Undefined function or variable 'xyzPoints' Class gives me: >> class(ptCloud)
ans =
'pointCloud'
Instead of PointCloud2
Is it possible to change the class?
  1 件のコメント
Sanad Afaneh
Sanad Afaneh 2018 年 3 月 4 日
Now after obtaining the xyz coordinates, how can I convert the data into a 3 column matrix?

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

採用された回答

Walter Roberson
Walter Roberson 2018 年 3 月 4 日
  4 件のコメント
Maharani Putri
Maharani Putri 2021 年 5 月 6 日
@Walter Roberson Thank you for your help. Finally, I have a good answer.
The next question, how can we find Xmin; Ymin; and Zmin for the 3 column matrix?
Thanks.
Walter Roberson
Walter Roberson 2021 年 5 月 7 日
mins = min(YourMatrixWithThreeColumns,1);
Xmin = mins(1); Ymin = mins(2); Zmin = mins(3);

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

その他の回答 (0 件)

カテゴリ

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