how do i get clusters from a pointcloud?

i have a point cloud from an object i measured with a 3d microscope.
i am dealing with 3 vectors: x,y containing coordinate points in regular intervals and z containing the z-value (if there is no "Point, resp. no surface" the value is "NaN")
i would like to store and count "clusters" in 2D. By cluster i mean fibres. See pictures from scatter plot below:
how can i handle this? is it easier to convert the data to an image file and use matlabs morphological tools? i would be glad to avoid doing this.. thanks in advance

回答(1 个)

Lorenz
Lorenz 2014-12-15
I have exactly the same problem. Did you find a solution? Thanks!

2 个评论

Yes, I did. The algorithm I used is called DBSCAN (Density-based spatial clustering of applications with noise). Have a look at the code:
For "eps" I used the diagonal raster-distance of 2 points (sqrt(raster_x^2+raster_y^2)). good luck
Great, thanks! I'll have a look at it.

请先登录,再进行评论。

提问:

2014-3-24

评论:

2014-12-18

Community Treasure Hunt

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

Start Hunting!

Translated by