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?

조회 수: 3 (최근 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?

채택된 답변

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 CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by