Borrar filtros
Borrar filtros

How to convert red channel of a rgb image to grayscale image?

4 visualizaciones (últimos 30 días)
I have some rgb images. I want to know is there any way to only convert the red channel of them to grayscale?

Respuesta aceptada

Image Analyst
Image Analyst el 25 de Mayo de 2018
Yes. Very easy:
redChannel = rgbImage(:, :, 1); % Extract the red channel only into a gray scale image.
  3 comentarios
Image Analyst
Image Analyst el 25 de Mayo de 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.
Ghazal Hnr
Ghazal Hnr el 25 de Mayo de 2018
Thank you for your response.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Modify Image Colors en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by