MATLAB Answers

0

Manipulating location matrix in the Point cloud data

Asked by Rishabh Mittal on 30 Oct 2019
Latest activity Answered by JESUS DAVID ARIZA ROYETH on 30 Oct 2019
I am working with the pointCloud object with folloign properties:
Location: [622894×3 single]
Color: [622894×3 uint8]
Normal: []
Count: 622894
XLimits: [-13.0343 13.7152]
YLimits: [-3.3536 7.7093]
ZLimits: [-15.0000 -4.7615]
I would like to multiple the location matrix by -1. I am unable to acces the location matrix to apply this multiplication operation.

  0 Comments

Sign in to comment.

2 Answers

Answer by Sai Bhargav Avula on 30 Oct 2019
Edited by Sai Bhargav Avula on 30 Oct 2019

You should be able to access it by
loc = PtcloudObject.Location

  0 Comments

Sign in to comment.


Answer by JESUS DAVID ARIZA ROYETH on 30 Oct 2019

Hi, you can pass the information to another object :
ptCloudold = pointCloud(rand(100,3,'single'));
newptcloud= pointCloud(ptCloudold.Location*-1,'Color',ptCloudold.Color,'Normal',ptCloudold.Normal)

  0 Comments

Sign in to comment.