How to get Color Histogram of an Image

18 次查看(过去 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.

采纳的回答

Mehdi Saberioon
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 个评论
teja jayavarapu
teja jayavarapu 2018-1-13
How to find the bin count in hsv color space

请先登录,再进行评论。

更多回答(3 个)

teja jayavarapu
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

mariena aloor
mariena aloor 2018-10-22
Sir i want to apply moving average filter to the individual color histogram planes

Abcd efgh
Abcd efgh 2021-4-23
Please refer this tutorial--
Hope this will be helpful.
Happy Learning :-)

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by