how to draw inner boundaries of centroids?

I generated centroids from my images, and made a 2D scatter plot of them. I'd like to draw the inner boundaries using functions, but I don't know where to begin. Right now, I'm drawing the boundaries using the drawpolygon. I draw the outer boundary using convhull(). I attached an example image of what i'm looking for and the centroids data for that image. Even if something is close enough, that's totally fine. I'd like some advice how to begin.

2 comentarios

Image Analyst
Image Analyst el 28 de Jul. de 2020
Did you try the boundary() function?
Aditya Misra
Aditya Misra el 28 de Jul. de 2020
I was under the impresion that the boundary() function would give me the outer boundary, but not the inner one.

Iniciar sesión para comentar.

Respuestas (1)

Abhishek Gupta
Abhishek Gupta el 7 de Sept. de 2020
Editada: Abhishek Gupta el 7 de Sept. de 2020

0 votos

Referring to the following link, which might help you in resolving the issue: -

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Productos

Versión

R2019b

Preguntada:

el 28 de Jul. de 2020

Editada:

el 7 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by