Get Color histogram of an image
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
How can I get one color histogram of an image? I don't want three RGB histograms. I want one histogram. X-axis represents the color.
Thanks!
0 Commenti
Risposte (1)
Image Analyst
il 27 Mar 2017
What's your definition of color? The hue? You can take the histogram of the hue channel if you want:
hsvImage = rgb2hsv(rgbImage);
hueImage = hsvImage(:,:,1);
histObject = histogram(hueImage);
Vedere anche
Categorie
Scopri di più su Histograms in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!