How do I measure RGB saturation?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sónia Santos
il 3 Mag 2018
Risposto: Yuvaraj Venkataswamy
il 3 Mag 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!
0 Commenti
Risposta accettata
Yuvaraj Venkataswamy
il 3 Mag 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
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox 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!