RGB to HSV conversion then Generating a Histogram
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello all
I have an rgb image and I want to convert it into HSV image and want to generate a histogram for the to get dominant colors HSVmap1 = rgb2hsv(X1)
2 Kommentare
Akzeptierte Antwort
Thorsten
am 27 Apr. 2015
This may get you started:
I = imread('peppers.png');
HSV = rgb2hsv(I);
H = HSV(:,:,1); % the hue plane
hist(H(:))
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!