How can I find the intensity value which has the maximum number of pixels in the histogram? I'm using grayscale image. please I need a code ..
2 ビュー (過去 30 日間)
古いコメントを表示
how can find a function to solve this?
0 件のコメント
採用された回答
Walter Roberson
2016 年 10 月 16 日
[counts, edges] = histcounts(YourIntensityImage(:), 0:255);
[maxcount, maxidx] = max(counts);
most_common_intensity = edges(maxidx);
14 件のコメント
Image Analyst
2016 年 10 月 17 日
You might try a modified median filter, like my attached code.
その他の回答 (1 件)
Image Analyst
2016 年 10 月 16 日
For a more general and somewhat different solution, you might look at the color frequency image: http://www.mathworks.com/matlabcentral/fileexchange/28164-color-frequency-image
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!