Borrar filtros
Borrar filtros

How to unite the missing parts of a curve - binary images

1 visualización (últimos 30 días)
Paul Simon
Paul Simon el 27 de Jun. de 2019
Comentada: Paul Simon el 2 de Jul. de 2019
I have a binary image of a curve with many missing parts and I need an idea to unite the discontinuities in order to obtain a continous curve.
I've attached below 3 examples and I need to code it so that the same code works on all of them
  1 comentario
Paul Simon
Paul Simon el 29 de Jun. de 2019
I've managed to get the centroids coordinates of all the blobs but I need to sort them somehow in order to obtain what I need (I've tried using poly2mask without sorthing them and the attached image is the result). Any ideas?

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 29 de Jun. de 2019
Maybe try boundary()
  4 comentarios
Image Analyst
Image Analyst el 30 de Jun. de 2019
Change the options for boundary() to make it fit tighter if you want.
Paul Simon
Paul Simon el 2 de Jul. de 2019
I think it would be more efficient if I had the coordinates of the starting and ending point of each blob but I don't really know how to obtain them

Iniciar sesión para comentar.

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by