RGB to YUV Conversion
Y = (0.257 * R) + (0.504 * G) + (0.098 * B) + 16
Cr = V = (0.439 * R) - (0.368 * G) - (0.071 * B) + 128
Cb = U = -(0.148 * R) - (0.291 * G) + (0.439 * B) + 128
YUV to RGB Conversion
B = 1.164(Y - 16) + 2.018(U - 128)
G = 1.164(Y - 16) - 0.813(V - 128) - 0.391(U - 128)
R = 1.164(Y - 16) + 1.596(V - 128)
In both these cases, you have to clamp the output values
Y��CbCr is often confused with the YUV color space, and typically the terms YCbCr and YUV are used interchangeably, leading to some confusion; when referring to signals in video or digital form, the term "YUV" mostly means "Y��CbCr".
Y'UV is often used as the term for YCbCr. However, they are different formats. Y'UV is an analog system with scale factors different from the digital Y'CbCr system.[5]
In digital video/image systems, Y'CbCr is the most common way to express color in a way suitable for compression/transmission. The confusion stems from computer implementations and text-books erroneously using the term YUV where Y'CbCr would be correct.
Y << 10 = (263 * R) + (516 * G) + (100 * B) + 16384
Cr << 10 = (450 * R) - (377 * G) - ( 73 * B) + 131072
Cb << 10 = -(152 * R) - (298 * G) + (450 * B) + 131072
Y << 10 = (20'h00107 * R) + (20'h00204 * G) + (20'h00064 * B) + 20'h04000
Cr << 10 = (20'h001C2 * R) + (20'hFFE87 * G) + (20'hFFFB7 * B) + 20'h20000
Cb << 10 = (20'hFFF68 * R) + (20'hFFED6 * G) + (20'h001C2 * B) + 20'h20000
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
rgb2yuv.zip (11个子文件)
rgb2yuv
rgb2yuv
bench
altera_mf.v 2.09MB
tb_rgb2yuv.do 130B
tb_rgb2yuv.v 2KB
rgb2yuv.c 2KB
220model.v 231KB
timescale.v 22B
tb_rgb2yuv.args 222B
tb_rgb2yuv.rc 2KB
tmp.txt 1KB
rgb2yuv.v 3KB
MAC_3.v 15KB
共 11 条
- 1
资源评论
- wg_chn2014-05-24很简单的例子。要分太高了
- lhjhotmail2012-09-26还是不错的,功能实现了
- anluckily2013-07-14学习了一下,不过由于自身原因,没怎么看。
sunisi2008
- 粉丝: 6
- 资源: 28
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功