Converting gray scale to ycbcr??
6 次查看(过去 30 天)
显示 更早的评论
Is there any way by which we can convert a gray scale to Ycbcbr???
0 个评论
采纳的回答
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
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 Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!