Describe a complex shape with simples ones using image analysis

Say I have a complex shape like this
that I want to describe/simplify like this
I was wondering if there was a way using image analysis to do this ? I can find many methods of shape recognition but not any for shape simplification (althoug I'm not an expert and my searching might not be efficient...). I tried using clustering methods (cmdscale on distance between points and linkage/cluster) but the results is not easy to get, especially if I don't know beforehand the number of clusters.

 채택된 답변

Image Analyst
Image Analyst 2021년 12월 15일

0 개 추천

You could threshold the image to produce blobs using imbinarize().
You could separate the blobs using imerode().
You could smooth the blobs shapes using conv2() or imfilter().

댓글 수: 3

Thank you for your reply. This is indeed an acceptable answer given my question. In real life though I have lots of various configurations in which I don't really know the size of the link between the secondary blobs from the central one. I guess this would mean a loop with different SE in imerode to see the results and decide, which will probably take some time but I'll give it a try :)
Very promising ! Thank you very much, I'll give it a try (I'll update with the results if it works)

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

추가 답변 (0개)

질문:

2021년 12월 15일

댓글:

2021년 12월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by