Réponse acceptée

Guillaume
Guillaume le 18 Fév 2018
Modifié(e) : Guillaume le 18 Fév 2018

1 vote

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 commentaire

Image Analyst
Image Analyst le 18 Fév 2018
Correction: rgb2gray(ycbcr2rgb(yourimage))

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by