how can i count square objects are in the image ?
古いコメントを表示

how can i count square objects are in the image ?
回答 (1 件)
Image Analyst
2020 年 12 月 1 日
0 投票
See my attached shape recognition demos.
2 件のコメント
Farid UO
2020 年 12 月 1 日
Image Analyst
2020 年 12 月 1 日
Depends on how robust you want to be. The method many/most people use is to find the centroid, then find the boundary, then find the distance from the centroid to each boundary point. Then call findpeaks() to count the number of peaks. So that's not too difficult to understand. One of my demos does it that way.
Did you try to adapt it to use your image instead of the synthetically generated shapes that I created in the demo? If not, why not? Just delete the part where I create the shapes and replace it with a call to imread().
カテゴリ
ヘルプ センター および File Exchange で Semantic Segmentation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!