How to get Color Histogram of an Image
37 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone,I want to get Color Histogram from a image.What is the Code to get color histogram.what is the difference between HISTOGRAM and COLOR HISTOGRAM.How to show it on screen.
0 件のコメント
採用された回答
Mehdi Saberioon
2015 年 3 月 5 日
編集済み: Mehdi Saberioon
2015 年 3 月 5 日
Histogram is displaying the distribution of data. Color histogram shows distribution for each band.
%Split into RGB Channels
Red = image(:,:,1);
Green = image(:,:,2);
Blue = image(:,:,3);
%Get histValues for each channel
[yRed, x] = imhist(Red);
[yGreen, x] = imhist(Green);
[yBlue, x] = imhist(Blue);
%Plot them together in one plot
plot(x, yRed, 'Red', x, yGreen, 'Green', x, yBlue, 'Blue');
4 件のコメント
その他の回答 (3 件)
teja jayavarapu
2018 年 1 月 13 日
I have quantized hsv into 8×3×3 combinations,so I want to find what is number of pixels per each bin how do I do it
1 件のコメント
mariena aloor
2018 年 10 月 22 日
Sir i want to apply moving average filter to the individual color histogram planes
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!