How to get Color Histogram of an Image

28 visualizaciones (últimos 30 días)
cse batch4
cse batch4 el 5 de Mzo. de 2015
Respondida: Abcd efgh el 23 de Abr. de 2021
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.

Respuesta aceptada

Mehdi Saberioon
Mehdi Saberioon el 5 de Mzo. de 2015
Editada: Mehdi Saberioon el 5 de Mzo. de 2015
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 comentarios
teja jayavarapu
teja jayavarapu el 13 de En. de 2018
How to find the bin count in hsv color space
yara anitha
yara anitha el 13 de Mayo de 2020
can anyone expain the output?

Iniciar sesión para comentar.

Más respuestas (3)

teja jayavarapu
teja jayavarapu el 13 de En. de 2018
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 comentario
Image Analyst
Image Analyst el 13 de En. de 2018
It's the value of the histogram that you say you've created.

Iniciar sesión para comentar.


mariena aloor
mariena aloor el 22 de Oct. de 2018
Sir i want to apply moving average filter to the individual color histogram planes

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

Categorías

Más información sobre Histograms en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by