Effacer les filtres
Effacer les filtres

how to extract the green channel of a rgb image

5 vues (au cours des 30 derniers jours)
LAXMI PRIYANKA
LAXMI PRIYANKA le 6 Mar 2020
Commenté : DGM le 6 Déc 2023
i want to extract the green channel from rgb image

Réponses (1)

Walter Roberson
Walter Roberson le 6 Mar 2020
G = YourMatrix(:, :, 3);
  1 commentaire
DGM
DGM le 6 Déc 2023
G = YourMatrix(:, :, 2); % channels are ordered R,G,B
... or to just get all three,
[R G B] = imsplit(YourMatrix);

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by