pcshow, pointcloud: plot points with intensity.

9 views (last 30 days)
Hi, I'm having some problems with the pointcloud structures. Firstly my data are a 3Dimension array (200,200,160), where each index represent a coordinate, y,x,z respectively, and the value of the array represents the number of points in theese coordinates. For example, if my array 'A', and A(10,20,100)=4, means that I have 4 points in Y=10, X=20 and Z=100. I did a PointCloud structure with this code:
[X,Y,Z] = ind2sub(size(A),1:numel(A));
mat = repelem([X(:),Y(:),Z(:)],A(:),1,1);
ptCloud = pointCloud(mat);
I need the pointCloud becouse I'm working with pcregistericp. But now I need to plot this data, so I was thinking plot it with pcshow, but I would need to asign transparency inversely proportional to the number of points in each coordinates.
I hope it is clear, I'm not good explining.
I tried also with scatter3, but there are too many points, so it doesn't work. If someone can help me with an idea, it would be great for me.
  1 Comment
Image Analyst
Image Analyst on 24 May 2018
Edited: Image Analyst on 24 May 2018
It would be clearer if you had attached "A" in a .mat file and had included a screenshot. If there are too many points, then maybe you don't need ALL of those to get your point across in your visualization. Try displaying only a fraction of them.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!