How do I measure RGB saturation?

1 visualización (últimos 30 días)
Sónia  Santos
Sónia Santos el 3 de Mayo de 2018
Respondida: Yuvaraj Venkataswamy el 3 de Mayo de 2018
I need to obtain the values of red, green and blue channel saturation separatly. I don't need the measurment for a specific area of the image but for the complete image. I really need some help. Thank you!

Respuesta aceptada

Yuvaraj Venkataswamy
Yuvaraj Venkataswamy el 3 de Mayo de 2018
Please Check this.
if true
I=uint8(rgb_img);
hsv_img=rgb2hsv(I);
hue=hsv_img(:,:,1);
saturation=hsv_img(:,:,2);
value=hsv_img(:,:,3);
end

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by