how to fill in the image by connecting every point in the image in a bw image

I have images like following
I'd like to connect every point with every point on this image so that I am able to fill in the gap on top left conor. How do I manage to do this. Or is there any better way?
for the 1st image, I'd like the result to be like

Respuestas (1)

%%%%%%%%%%%% you can use Morphlogical operation
%%%%%%%%%% using sphere with your tested redius after fiil it
se=strel('sphere',10);
imr=imopen(im,se);

1 comentario

thanks for answring,
This method works fine with relatively small gap like I gave in the question but not very well on the image with a larger gap like the follwoing one. is there anyway to sovle this? Many thanks.

Iniciar sesión para comentar.

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Productos

Versión

R2019b

Preguntada:

el 14 de Abr. de 2020

Comentada:

el 14 de Abr. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by