Borrar filtros
Borrar filtros

How do I get a profile from a point cloud?

8 visualizaciones (últimos 30 días)
Joshua Knicely
Joshua Knicely el 10 de Nov. de 2021
Comentada: Lyhour Chhay el 23 de En. de 2022
I have a point cloud of data. It's a 3D scan of a cratering experiment. I want to get a bunch of profiles from the center of the crater to the edge of the data at multiple angles. This is so I can later extract some metrics about the crater.
My problem is that I have no idea how to get the profile. My first thought is to somehow transform the data from a bunch of points into a gridded data set, but even if I did that, I don't know how to get the profile extracted from the grid at arbitrary angles.
I'm not sure it matters, but I also need to later determine the volume of the displaced material from the crater. My thought with that is simply to subtract the original 3D surface (as a grid or mesh or whatever) from the cratered surface. I only bring this up as I imagine it could be important whether I transform the point cloud to a gridded data set or a mesh or something else I don't know about.
So, how would I go about getting a profile from a point cloud?

Respuesta aceptada

Matt J
Matt J el 11 de Nov. de 2021
Editada: Matt J el 12 de Nov. de 2021
Can the z-coordinates of the point cloud data be considered a function of (x,y)? If so, then,
F=scatteredInterpolant(x,y,z);
Xp=linspace(x1,x2,100); %profile x-coordinates
Yp=linspace(y1,y2,100); %profile y-coordinates
Zp=F(Xp,Yp); %profile z-coordinates
The volume underneath whichever surface can be computed with integral2,
underVolume=integral2(@(x,y) F(x,y) ,xmin,xmax,ymin,ymax))
  2 comentarios
Joshua Knicely
Joshua Knicely el 11 de Nov. de 2021
That works fantastically! Thanks, Matt.
Lyhour Chhay
Lyhour Chhay el 23 de En. de 2022
Dear Matt J,
I see you again here. I hope that you remember me when we discuss about the rotation of point cloud. However, I am interesting in the question above. I use your suggestion coding in this forum. I can get the profile. However, I want to know that is it possible to calculate the distance from peak point to peak point ? I will show you in the figure. Thank you very much sir.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Point Cloud Processing en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by