how to combine rectangle that so close together?
2 views (last 30 days)
Image Analyst on 25 May 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.