Segmentation of interconnected lines
Show older comments
Hi!
I'm working on a project that require to segment shapes or features from an image. My actual approach is to first detect all lines with Hough Transform and after try to segment each line by its slope, hower I've tried k-means, DBSCAN, and I didn't get the result that I would like to achieve.
I would like to know if someone can help me with a idea or documentation.
Thank You!

5 Comments
Jan
on 5 Nov 2022
Please include the images directly instead of letting the readers download them from an external service.
James Ben
on 5 Nov 2022
Image Analyst
on 6 Nov 2022
OK, good but you forgot to include your code. Give us a head start by including your Hough code and clustering code. What sort of clusters would you like? Like horizontal lines and vertical lines? You can do that just with thresholding the slopes vector, but I guess you could use kmeans if you want. I'm not sure dbscan would be appropriate - I can't see that so not sure what the rationale for dbscan was.
James Ben
on 9 Nov 2022
Accepted Answer
More Answers (0)
Categories
Find more on Image Segmentation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!