Clear Filters
Clear Filters

How do I measure RGB saturation?

2 views (last 30 days)
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!

Accepted Answer

Yuvaraj Venkataswamy
Yuvaraj Venkataswamy on 3 May 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

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!