How can I detemine the presence of some colors (e.g white, light brown, dark brown, red, blue gray and black) in a piture like attached one?
1 回表示 (過去 30 日間)
古いコメントを表示
I have to count presence of any colour if its number of pixels is more than 5% of total number of pixels.
0 件のコメント
採用された回答
Image Analyst
2020 年 2 月 22 日
With 16 millino colors possible in a24 bit RGB image, probably no color has that much. You'd be best off defining a limited number, like 5 or 10, color ranges. Then like Daniel said, use the Color Thresholder App to get the area fraction for each color range that you specify.
2 件のコメント
Image Analyst
2020 年 2 月 22 日
Try LDA, where you manually lassoo regions that you define to be whatever color you want. See my attached demo.
その他の回答 (1 件)
Daniel Vieira
2020 年 2 月 21 日
the easiest way would be using the Color Thresholder App to create function for the each color you want.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Modify Image Colors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!