How to get the imageYCbCr from their component Y, Cb and Cr?

6 ビュー (過去 30 日間)
fekri saleh
fekri saleh 2012 年 6 月 6 日
編集済み: Vidit Jain 2017 年 4 月 2 日
I was compressed the image JPRG, As is well known, I get the component Y,Cb and Cr from YCbCr image As follows:
imageRGB = imread('myimage’);
imageRGB=imresize(imageRGB, [128 128]);
imageYCbCr = rgb2ycbcr(imageRGB);
imageY = imageYCbCr(:,:,1);
imageCb = imageYCbCr(:,:,2);
imageCr = imageYCbCr(:,:,3);
:
:
:
Now the question is how we can make the inverse operation? That is to say, in decoding operation, how to get the imageYCbCr from their component imageY, imageCb and imageCr for recover my image after that.

回答 (1 件)

Vidit Jain
Vidit Jain 2017 年 4 月 2 日
編集済み: Vidit Jain 2017 年 4 月 2 日
Use cat command. Since you want to concatenate the three channels so use cat(3,A,B,C). In your case use: combinedImg = cat(3,imageY,imageCb,imageCr); combined_RGB = ycbcr2rgb(combinedImg);

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by