フィルターのクリア

Converting gray scale to ycbcr??

10 ビュー (過去 30 日間)
Niranjan
Niranjan 2011 年 2 月 18 日
Is there any way by which we can convert a gray scale to Ycbcbr???

採用された回答

David Young
David Young 2011 年 2 月 18 日
A greyscale image has no colour information, but you can still represent it as ycbcr if you wish - though it's not clear why you'd want to, since the chrominance planes will be constants. Anyway, this will convert, assuming you're starting from a 2D greyscale image:
rgbimage(:,:,1) = greyimage;
rgbimage(:,:,2) = greyimage;
rgbimage(:,:,3) = greyimage;
ycbcrimage = rgb2ycbcr(rgbimage);
You can also convert a colormap using the same function, if that's what you want to do.
  1 件のコメント
Christin Panjaitan
Christin Panjaitan 2014 年 9 月 5 日
How is about grayscale High Dynamic Range (12-bit) ? How to convert grayscale High Dynamic Range into Ycbcr ?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by