Join curves of an image, identify which curves have to be joined

2 ビュー (過去 30 日間)
Muskan Agrawal
Muskan Agrawal 2020 年 8 月 5 日
コメント済み: Muskan Agrawal 2020 年 8 月 6 日
There is an image of say the surface of a metal. So, it has a lot of curves on it. There are also some discontinuous curves. So, I a supposed to join such curves.
I have been working on this and also came up with a solution in which I have to manually select two curves that are supposed to be joined. Then those curves are joined.
Since, there are many such discontinuous curves to be joined, I want to automotise it. Specifically, I don't want to manually select curves. Is there any way to proceed.
I have attached an image below to give a gist. Red circles shows the curves I want to join. Blue circles shows that they are joined. But my problem is that each time the user has t select the two curves that are supposed to be joined. Please do help.

回答 (1 件)

Image Analyst
Image Analyst 2020 年 8 月 5 日
I'm attaching two edge linking demos. Adapt as needed - sorry I can't do that for you (not enough time).
  3 件のコメント
Image Analyst
Image Analyst 2020 年 8 月 6 日
They basically find endpoints, then if a pair of endpoints are closer together than a specified distance, it connects those endpoints with a line. Isn't that what you want to do?
Muskan Agrawal
Muskan Agrawal 2020 年 8 月 6 日
Yeah! I tried doing but its not fulfilling the result which I want. Actually not all curves are supposed to be joined. Also the curves in the above image are so close, it isn't working out the way I want.
Pls try the code which I am attaching. May be I ll be able to make myself clearer, what kind of result I want.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by