connect lines after edge detection

Dear all, i've applied edge detection (sobel) to an image and get red of unwanted objects , but it also deleted some lines from the required objects.
how can i connect this lines again?
thanks in advance

2 commentaires

Sean de Wolski
Sean de Wolski le 10 Août 2012
Sample images are worth more than a thousand words :)
sheharyar javed
sheharyar javed le 15 Mai 2019
use dilation ...and than erosion

Connectez-vous pour commenter.

Réponses (2)

Sumit Tandon
Sumit Tandon le 10 Août 2012

0 votes

As Sean said, it will be difficult to give an exact answer without looking at the image. However, if the aim is to reconnect lines and fill up holes, etc., then morphological operations like dilation, closing, etc may be helpful.
Try out MorphTool submitted by Brett. This will give you easy access to morphological operations in Image Processing Toolbox.

Question posée :

le 10 Août 2012

Commenté :

le 15 Mai 2019

Community Treasure Hunt

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

Start Hunting!

Translated by