Effacer les filtres
Effacer les filtres

Joining two curves on an image

3 vues (au cours des 30 derniers jours)
Muskan Agrawal
Muskan Agrawal le 19 Juin 2020
There is an input image of a metal surface with lots of curves on it. I have used ' bwlabel ' function of MATLAB to identify all the curves of the image. Hence, each curve has its unique ID. Now my task is to connect two cruves which have gap between them. That is, there are two disjoint curves i.e. there is no connectivity between them, but I need to connect them and make them into a single curve.
E.g. In the above image, in the marked region, there are two disjoint curves which I would like to join.
Basically, I want a curve to be drawn joining those two curves.
  4 commentaires
Muskan Agrawal
Muskan Agrawal le 19 Juin 2020
@Kalyan Acharjya
Here is a larger image.
Muskan Agrawal
Muskan Agrawal le 19 Juin 2020
@KSSV
Can we use fillmissing to join two curves?

Connectez-vous pour commenter.

Réponses (1)

Divya Gaddipati
Divya Gaddipati le 25 Juin 2020
You can use imdilate to make the lines come closer to each other. This will increase the width of the lines as well. To reduce them back to their original, you can then use bwskel.
For more information of imdilate and bwskel, you can refer to the following links:

Catégories

En savoir plus sur 3-D Volumetric Image Processing dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by