how to extract the green channel of a rgb image
3 views (last 30 days)
Show older comments
i want to extract the green channel from rgb image
0 Comments
Answers (1)
Walter Roberson
on 6 Mar 2020
G = YourMatrix(:, :, 3);
1 Comment
DGM
on 6 Dec 2023
G = YourMatrix(:, :, 2); % channels are ordered R,G,B
... or to just get all three,
[R G B] = imsplit(YourMatrix);
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!