How to convert red channel of a rgb image to grayscale image?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ghazal Hnr
il 25 Mag 2018
Commentato: Ghazal Hnr
il 25 Mag 2018
I have some rgb images. I want to know is there any way to only convert the red channel of them to grayscale?
0 Commenti
Risposta accettata
Image Analyst
il 25 Mag 2018
Yes. Very easy:
redChannel = rgbImage(:, :, 1); % Extract the red channel only into a gray scale image.
3 Commenti
Image Analyst
il 25 Mag 2018
That is a bad explanation and they should know better. When you extract the red channel, it is already a grayscale image at that point -- there is no need for a second step of converting it to a gray scale image.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Modify Image Colors in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!