RGB to HSV conversion then Generating a Histogram

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 comentarios

Jan
Jan el 27 de Abr. de 2015
What have you tried so far and which problems occur?
JAM
JAM el 27 de Abr. de 2015
Really I need to extract the dominant colors from an image. I don't know from where to start

Iniciar sesión para comentar.

 Respuesta aceptada

Thorsten
Thorsten el 27 de Abr. de 2015
This may get you started:
I = imread('peppers.png');
HSV = rgb2hsv(I);
H = HSV(:,:,1); % the hue plane
hist(H(:))

Más respuestas (0)

Etiquetas

Preguntada:

JAM
el 27 de Abr. de 2015

Respondida:

el 27 de Abr. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by