connecting image extreme (end) boundries

3 visualizaciones (últimos 30 días)
Iram Shahzadi
Iram Shahzadi el 27 de Mayo de 2020
Comentada: Iram Shahzadi el 27 de Mayo de 2020
Hi, I have edge detected image. I want to connect all the pixels at extreme edges and fill the region inside, so that i have a binary mask of this image without any gaps. I used imdilate but this introduce thickness in boundries that i do not want in image. Can anyone please guide how I can do it. thanks

Respuesta aceptada

Image Analyst
Image Analyst el 27 de Mayo de 2020
Try
mask = bwconvhull(mask, 'union');
or else try imclose() followed by imfill(), or try activecontour() (demo attached).
  1 comentario
Iram Shahzadi
Iram Shahzadi el 27 de Mayo de 2020
Thanks a lot, i used bwconvhull followed activecontour and with 200 iterations and got desired results. I was able to use activecontour as I have original image from which i created edge detected image initially.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by