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