Filter löschen
Filter löschen

how to extract the green channel of a rgb image

5 Ansichten (letzte 30 Tage)
LAXMI PRIYANKA
LAXMI PRIYANKA am 6 Mär. 2020
Kommentiert: DGM am 6 Dez. 2023
i want to extract the green channel from rgb image

Antworten (1)

Walter Roberson
Walter Roberson am 6 Mär. 2020
G = YourMatrix(:, :, 3);
  1 Kommentar
DGM
DGM am 6 Dez. 2023
G = YourMatrix(:, :, 2); % channels are ordered R,G,B
... or to just get all three,
[R G B] = imsplit(YourMatrix);

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by