how to combine rectangle that so close together?

조회 수: 1 (최근 30일)
Keane Athallah
Keane Athallah 2022년 5월 25일
댓글: Keane Athallah 2022년 5월 25일
on the top right corner there is 1 plant that count as 2, i wonder how can i fix that?

답변 (1개)

Image Analyst
Image Analyst 2022년 5월 25일
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
Keane Athallah
Keane Athallah 2022년 5월 25일
Thanks you so much
Keane Athallah
Keane Athallah 2022년 5월 25일
i already find the Centroid

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by