How to count the number of extrema of image's histogram
1 回表示 (過去 30 日間)
古いコメントを表示
Hi everyone, Please give me some suggest the ways to count the number of extrema of image's histogram. Thank a lot! Nice weekend for all! HongTu
0 件のコメント
採用された回答
その他の回答 (1 件)
HongTu Nguyen
2011 年 9 月 19 日
3 件のコメント
Image Analyst
2011 年 9 月 21 日
You can't estimate the number of foreground objects in your image from the image's histogram unless you know the areas of the objects in your image. For example if your foreground (objects) are brighter than thresholdValue and the size of the objects is objectArea, then you can estimate the number of objects like this:
numberOfObjects = round(sum(pixelCounts(thresholdValue:end)) / objectArea);
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!