pcshow, pointcloud: plot points with intensity.

3 次查看(过去 30 天)
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 个评论
Image Analyst
Image Analyst 2018-5-24
编辑:Image Analyst 2018-5-24
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.

请先登录,再进行评论。

回答(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