how to split a gray image into dark, middle and bright pixels
1 回表示 (過去 30 日間)
古いコメントを表示
how to split a gray image into dark, middle and bright pixels
0 件のコメント
採用された回答
Image Analyst
2014 年 7 月 14 日
You would have to know the algorithm they're using because there are quite a few gray levels that seem to be in all three classes. I think there is quite a bit of overlap in what they call dark, middle, and bright.
2 件のコメント
Image Analyst
2014 年 7 月 14 日
Simple method is thresholding
darkPixels = grayImage(grayImage < 100));
middlePixels = grayImage((grayImage >= 100) & (grayImage <= 200));
brightPixels = grayImage(grayImage > 200));
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!