how to combine rectangle that so close together?

3 visualizaciones (últimos 30 días)
Keane Athallah
Keane Athallah el 25 de Mayo de 2022
Comentada: Keane Athallah el 25 de Mayo de 2022
on the top right corner there is 1 plant that count as 2, i wonder how can i fix that?

Respuestas (1)

Image Analyst
Image Analyst el 25 de Mayo de 2022
I would get the centroids of all the boxes. Then get their separations with pdist2. Then if the centroids of any pair are closer than a certain amount, I'd burn a line in the image connecting the two centroids. Then analyze the image to find the green blobs again.
  2 comentarios
Keane Athallah
Keane Athallah el 25 de Mayo de 2022
Thanks you so much
Keane Athallah
Keane Athallah el 25 de Mayo de 2022
i already find the Centroid

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by