How to generate a point cloud in 3D?

조회 수: 7 (최근 30일)
Leo Müller
Leo Müller 2015년 11월 16일
댓글: elnaz gh 2020년 9월 14일
Hello dear community,
I would like to know if there is a fast way to create a cloud in 3D which consists of points. I would like to get something like this:
The points should be written into a simple matrix. Each row should represent one point. Thank you for your help!

채택된 답변

Mike Garrity
Mike Garrity 2015년 11월 16일
편집: Mike Garrity 2015년 11월 16일
This might be a good starting point:
[x,y,z] = ndgrid(1:5:100,1:5:100,1:5:100);
scatter3(x(:),y(:),z(:),'.')
The ndgrid function will return multiple arrays of the same shape with one of its inputs replicated along one dimension of each of its outputs.
The syntax x(:) says to convert that 3D array into a vector.
The scatter3 function takes 3 vectors and plots a marker at the location defined by each row of the three.
The '.' argument to scatter3 tells it to draw a dot, rather than one of the bigger and more complex markers.
  댓글 수: 6
Halil Bölük
Halil Bölük 2020년 4월 30일
Hello RAMYA. I need stl to point cloud transformation. Did you find anything about this ?
elnaz gh
elnaz gh 2020년 9월 14일
Hello you can use meshlabjs(it is online) and upload yor .stl file and then search "sampling" then select poission disk sampling or monto carlo sampling,

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

faten emad
faten emad 2018년 9월 17일
Hi Mike, your code is very good. I want to generate a point cloud of moving scan camera can you help me?
  댓글 수: 5
faten emad
faten emad 2018년 9월 20일
can you help me with the codes?

댓글을 달려면 로그인하십시오.

카테고리

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