필터 지우기
필터 지우기

pcshow, pointcloud: plot points with intensity.

조회 수: 10 (최근 30일)
Fernando Arias
Fernando Arias 2018년 5월 24일
편집: Image Analyst 2018년 5월 24일
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