How do I measure RGB saturation?

조회 수: 2 (최근 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 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