Importing Point cloud to overlay on solid object

조회 수: 11 (최근 30일)
Dhinu
Dhinu 2025년 1월 21일
댓글: Dhinu 2025년 2월 27일
I would like to import point cloud data from metrology system into Matlab.
The datatype i have point cloud is in text/asc/spreesheet/can also be converted to matlab array
i would like to visualise these points and later place these on the solid step file object i imported earlier to see the diffrence between them.
i tried to use mesh function but i get these errors , so i tried to change the import type and it doesn't work .
Error in Test2 (line 3)
x = Experiment1coordinates.X; % All x values
^^^^^^^^^^^^^^^^^^^^^^^^
>> Test2
Error using mesh (line 71)
Z must be a matrix, not a scalar or vector.
Error in Test2 (line 6)
s = mesh(x,y,z,'FaceAlpha','0.5')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  댓글 수: 2
Mathieu NOE
Mathieu NOE 2025년 1월 21일
if you have data in vectors (scattered data) , you must use scatter3 or trisurf
otherwise you must first create a 3d gridded array using meshgrid or ndgrid
William Rose
William Rose 2025년 2월 25일
@Dhinu, provide an example of your data file or files, if you want more assistance.

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

답변 (1개)

Walter Roberson
Walter Roberson 2025년 2월 25일
You probably need to use scatteredInterpolant . In some cases the scattered data is an "unraveled" rectangular grid; in such cases you can reshape() the data to be a grid and then use griddedInterpolant
  댓글 수: 1
Dhinu
Dhinu 2025년 2월 27일
i have the point cloud in the matlab now. I imported it as Csv file and used mesh function and later used pcshow to visualise the point cloud . but the point cloud is completely opposite to the actual surface since the point cloud was measured resting it on the surface horizontally, but the object is inverted 180 , how can i fit this when(i used pdeplot for importing the solid object)

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

카테고리

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