how to extract the green channel of a rgb image

6 views (last 30 days)
i want to extract the green channel from rgb image

Answers (1)

Walter Roberson
Walter Roberson on 6 Mar 2020
G = YourMatrix(:, :, 3);
  1 Comment
DGM
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);

Sign in to comment.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!