How to get Color Histogram of an Image
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
cse batch4
am 5 Mär. 2015
Beantwortet: Abcd efgh
am 23 Apr. 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.
0 Kommentare
Akzeptierte Antwort
Mehdi Saberioon
am 5 Mär. 2015
Bearbeitet: Mehdi Saberioon
am 5 Mär. 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 Kommentare
Weitere Antworten (3)
teja jayavarapu
am 13 Jan. 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 Kommentar
mariena aloor
am 22 Okt. 2018
Sir i want to apply moving average filter to the individual color histogram planes
0 Kommentare
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!