how to extract the green channel of a rgb image

조회 수: 1 (최근 30일)
LAXMI PRIYANKA
LAXMI PRIYANKA 2020년 3월 6일
댓글: DGM 2023년 12월 6일
i want to extract the green channel from rgb image

답변 (1개)

Walter Roberson
Walter Roberson 2020년 3월 6일
G = YourMatrix(:, :, 3);
  댓글 수: 1
DGM
DGM 2023년 12월 6일
G = YourMatrix(:, :, 2); % channels are ordered R,G,B
... or to just get all three,
[R G B] = imsplit(YourMatrix);

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by