您好,欢迎光临本网站![请登录][注册会员]  
文件名称: Bayer color conversion and processing.pdf
  所属分类: 图像处理
  开发工具:
  文件大小: 113kb
  下载次数: 0
  上传时间: 2019-10-08
  提 供 者: gudu****
 详细说明:文档详细描述了Bayer原始图像格式的像素排列的模式,以及Bayer图像像素与RGB图像格式之间转换的公式。The second form is used by Intel in their image processing library [41, and may be more suitable for implementation Y=(798R+19235G+37366)/213 (22) U=(21208R-1694G-32778)/215+128 V=(4784R-9437G+4221)/215+128 format(e.g. 10, 255] for a 24-bit YUV format). The inverse conversion may be accomplished b .or the YUV In either case, resulting values of Y, U and V should be clipped to fit the appropriate range fo R=1.164(Y-16)+2.018(V-128) G=1.164(Y-16-0.813(-128)-0.391(V-128) B=1.164(Y-16)+1596(-128) 3. White balance operation in rgB and yuv domains The white balance operation is defined as a gain correction for red, green and blue components by gain factors AR, AG and AB, respectively, 1.e Rwb= ARR m=4C(3) B b ApB B The new(white-balanced) values for red, green and blue are Rwb, Gw and Bwb. To derive the equivalent form of this operation in the YUV domain, we proceed as follows. First, write equation(2.1)as Cx+v(3.2) where x=(R, G, B)is the vector in the RGB space, y=(r, U,v) is the corresponding vector in the yUv space, V=(16, 128, 128), and C is the appropriate matrix of conversion coefficients Similarly,( 3. 1) can be written as wb Ax(3.3 where Xwb=(Rwb, Gwb, Bwb)is the vector in the RGB space modified by white balance operation (2.4), and a=diag(ar, ag, AB). We want to determine what is the corresponding vector ywb in the YUV domain, without having to revert back to the rgb domain. Vector y wb is found by substituting wb for x in(3. 2) ywh=Cxwb+V=CAx+V Let D=CA, so that ywh-V=DX. Then x=DYwb-v) Substitute this expression for x back into (3.2)to obtain y=CD"m=V+y(3.4) AN3- Bayer Color Filter 4/3/2003 Silicon Imaging, Inc Page 3 This equation provides the connection between y and y wb without involving x or xwb(i.e. without going back to the RGB domain). Manipulating (3. 4) and using the fact that for nonsingular matrices CD =DC[5, we get that white balance operation in the yuv domain is y wb DC-(y-V)+v=CAc y-v)+v (35) Expressing components of y wh from (3.5 )we get b=(0299AR+0587AG+0.141)-16)+(04104R-04104G;C-128)+(-0.197AG+0.198AB)V-128)-16 (0.5114R-0.428AG-0.009AB)(Y-16)-(0.7014R+0.299G)U-128)+(0.14G-0.1434B)V-128)+128 Vb≈(-01724R-039kG+051141)(-16)+(-02364R+0.2374G(U-128)+(0.14AG+08864B)V-128)+128 Terms with leading coefficient less than 10 have been dropped References [1 B. E Bayer, Color imaging array, US Patent No. 3971065 [2] T. Sakamoto, C Nakanishi and T. Hase, Software pixel interpolation for digital still cameras suitable for a 32-bit MCU. EEE Trans. Consumer electronics, vol 44. no. 4. November 1998 [3]http://www.northpoleengineering.com/rgb2yuv.htm AN3- Bayer Color Filter 4/3/2003 Silicon Imaging, Inc Page 4
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 输入关键字,在本站1000多万海量源码库中尽情搜索: