convert Ycbcr image to color image

befor, i ask how convert gray to color image
Ok, it is wrong from me when used "gray" expression. i want convert ycbcr to color but ycbcr2rgb(); give error also i want split y,cb and cr thank you very much

 Respuesta aceptada

Image Analyst
Image Analyst el 18 de Sept. de 2011
There I split out the RGB channels. It's the same principle to get Y, Cb, and Cr
Y = ycbcrImage(:,:, 1);
Cb = ycbcrImage(:,:, 2);
Cr = ycbcrImage(:,:, 3);

1 comentario

As of R2018b, you can also use imsplit()
% read an image (RGB,uint8)
rgbpict = imread('peppers.png');
% convert to uint8-scale YCbCr
yccpict = rgb2ycbcr(rgbpict);
% split the image into its components
[Y Cb Cr] = imsplit(yccpict);
% display them side by side
imshow([Y Cb Cr],'border','tight')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Preguntada:

el 18 de Sept. de 2011

Comentada:

DGM
el 7 de Mayo de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by