How to bridge the gaps
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Stelios Fanourakis
il 17 Set 2019
Commentato: KALYAN ACHARJYA
il 17 Set 2019
Please, see attached image.
I already, tried bwmorph(img,'bridge'); but it couldn't connect the detached lines.
I don't want to use extreme values of imdilate() since then the original shape and direction of the lines is lost. With extreme values of imdilate() I get thicker lines and this is not something I want to. I want to retain the same thickness but to get them elongated in a way so they can connect.
Any advice please?
Thanks
0 Commenti
Risposta accettata
KALYAN ACHARJYA
il 17 Set 2019
Modificato: KALYAN ACHARJYA
il 17 Set 2019
"I want to retain the same thickness but to get them elongated in a way so they can connect".
I tried using
se=strel('line',h,v);
result=imdilate(binary_image,se);
After that
use imerode (different structuring element), may be you will get similar to the original shape, with reaching the almost equal thickness.
4 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!