how to extract the green channel of a rgb image
1 回表示 (過去 30 日間)
古いコメントを表示
i want to extract the green channel from rgb image
0 件のコメント
回答 (1 件)
Walter Roberson
2020 年 3 月 6 日
G = YourMatrix(:, :, 3);
1 件のコメント
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!