How do I measure RGB saturation?

1 回表示 (過去 30 日間)
Sónia  Santos
Sónia Santos 2018 年 5 月 3 日
回答済み: Yuvaraj Venkataswamy 2018 年 5 月 3 日
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
Yuvaraj Venkataswamy 2018 年 5 月 3 日
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 Center および File ExchangeImage Processing Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by