Respuesta aceptada

Guillaume
Guillaume el 18 de Feb. de 2018
Editada: Guillaume el 18 de Feb. de 2018

1 voto

Note that there are many ways of converting colour to greyscale. Any weighted sum of the colour components can be a greyscale conversion.
Your Y component of the ycbcr triplet is already such a weighted sum. So you could just use that as a greyscale image.
Otherwise, you can always
rgb2gray(ycbcr2rgb(yourimage))
edit: an r was missing. Thanks Image Analyst

1 comentario

Image Analyst
Image Analyst el 18 de Feb. de 2018
Correction: rgb2gray(ycbcr2rgb(yourimage))

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Modify Image Colors en Centro de ayuda y File Exchange.

Preguntada:

el 18 de Feb. de 2018

Editada:

el 18 de Feb. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by