convert Ycbcr image to color image

조회 수: 3 (최근 30일)
Aseel H
Aseel H 2011년 9월 18일
댓글: DGM 2023년 5월 7일
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
David Young
David Young 2011년 9월 18일
What is the error message?

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2011년 9월 18일
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
DGM
DGM 2023년 5월 7일
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')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by