how to combine rectangle that so close together?
2 ビュー (過去 30 日間)
古いコメントを表示
on the top right corner there is 1 plant that count as 2, i wonder how can i fix that?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1010155/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1010155/image.jpeg)
0 件のコメント
回答 (1 件)
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.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!