how do i get clusters from a pointcloud?

1 view (last 30 days)
Stephan
Stephan on 24 Mar 2014
Commented: Lorenz on 18 Dec 2014
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

Answers (1)

Lorenz
Lorenz on 15 Dec 2014
I have exactly the same problem. Did you find a solution? Thanks!
  2 Comments
Stephan
Stephan on 15 Dec 2014
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
Lorenz
Lorenz on 18 Dec 2014
Great, thanks! I'll have a look at it.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!