How do I measure RGB saturation?

1 次查看(过去 30 天)
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!

采纳的回答

Yuvaraj Venkataswamy
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 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by