MATLAB Answers

how can i covert rgb image to HSI and separate the intensity component alone

조회 수: 12(최근 30일)
Jinu Sebastian
Jinu Sebastian 2020년 10월 6일
답변: DGM 2021년 5월 14일
I want to separate intensity components from an rgb image by converting it to HSI space

답변(2개)


DGM
DGM 2021년 5월 14일
If you just want the intensity (as in HSI) of an image:
ipict = mean(rgbpict,3);
If instead you want value (as in HSV)
vpict = max(rgbpict,[],3);
or if you want lightness (as in HSL)
lpict = min(rgbpict,[],3)/2 + max(rgbpict,[],3)/2;

태그

Community Treasure Hunt

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

Start Hunting!

Translated by