convert Ycbcr image to color image
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aseel H
am 18 Sep. 2011
Kommentiert: DGM
am 7 Mai 2023
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
1 Kommentar
Akzeptierte Antwort
Image Analyst
am 18 Sep. 2011
See my Answer/demo in your duplicate posting: http://www.mathworks.com/matlabcentral/answers/16042-convert-grayscale-image-to-color-image
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 Kommentar
DGM
am 7 Mai 2023
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')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!