Citation: | ZHANG Zeyu, ZHANG Hong, WU Lingfan, YANG Yifan, LI Xuliang. FPGA-based real-time Bayer demosaicking algorithm and its implementation[J]. Journal of Applied Optics, 2022, 43(2): 240-247. DOI: 10.5768/JAO202243.0202002 |
The Bayer array is widely applied in the front-end sensors such as complementary metal oxide semiconductor/charge-coupled device (CMOS/CCD), in order to compress and encode the color images. The Bayer array is restored to red, green and blue color arrays by demosaicking algorithm, and the performance of the algorithm affects the imaging effective resolution and texture details. With the development of semiconductor technology and proposal of demand of new applications such as target recognition, the image devices move toward high resolution and low latency, and the original demosaicking algorithm encounters performance bottlenecks. A real-time demosaicking algorithm based on the field programmable gate array (FPGA) was proposed, which could accurately extract the local gradient direction of the image and guide the interpolation restoration of the color. The overall algorithm only needed 7 lines of data delay, and fully considered the hardware characteristics of FPGA, and designed the modules such as line buffer, gradient operator and gradient direction interpolation to reduce the hardware cost. The experimental results show that the algorithm can achieve the micron-level latency, and maintain the restoration effect of texture detail area of the image. The average peak signal to noise ratio (PSNR) on Kodak data set can reach to 38.26 dB.
[1] |
BAYER B E. Color imaging array: US, 3971065[P]. 1976-07-20.
|
[2] |
MENON D, CALVAGNO G. Color image demosaicking: an overview, signal Processing[J]. Image Communication,2011,26(8-9):518-533.
|
[3] |
冈萨雷斯. 数字图像处理[M]. 阮秋琦, 阮宇智, 译. 北京: 电子工业出版社, 2006: 224-226.
GONZALEZ. Digital image processing [M]. Tanslated by RUAN Qiuqi , RUAN Yuzhi . Beijing: Electronic Industry Press, 2006: 224-226.
|
[4] |
COK D R. Signal processing method and apparatus for producing interpolated chrominance values in a sampled color image signal: US, 4642678[P]. 1987-02-10.
|
[5] |
杨晓飞, 田启川, 杨余. 基于多梯度的区域自适应去马赛克算法[J]. 计算机应用研究, 2011, 28(12): 4766-4769.
YANG Xiaofei, TIAN Qichuan, YANG Yu , et al. Adaptive region demosaicking using multi-color gradient[J]. Application Research of Computers 2011, 28(12): 4766-4769.
|
[6] |
WANG X, LIN W, XUE P. Demosaicing with improved edge direction detection[J]. IEEE Intermational Symposium on Circuits and Systems, Singapore,2005,3:2048-2050.
|
[7] |
GUNTURK B K, GLOTZBACH J, ALTUNBASK Y, et al. Demosaicing: color filter array interpolation[J]. IEEE Signal Processing Magazine,2005,22(1):4454.
|
[8] |
刘方. 基于Bayer彩色滤波阵列插值算法的研究[D]. 成都: 电子科技大学, 2006.
LIU Fang. Research based on color filter array interpolation algorithm of Bayer pattern[D]. Chengdu: University of Electronic Science and technology, 2006.
|
[9] |
DUBOIS E. Frequency-domain methods for demosaicking of Bayer-sampled color images[J]. IEEE Signal Processing Letters,2005,12(12):847-850.
|
[10] |
LIAN N X, CHANG L, TAN Y P, et al. Adaptive filtering for color filter array demosaicking[J]. IEEE Transactions on Image Processing,2007,16(10):2515-2525. doi: 10.1109/TIP.2007.904459
|
[11] |
CHUNG K H, CHAN Y H. Color demosaicing using variance of color differences[J]. IEEE Transactions on Image Processing,2006,15(10):2944-2955. doi: 10.1109/TIP.2006.877521
|
[12] |
叶懋, 黄品高, 吕洋, 等. 基于FPGA的雾霾视频图像实时复原系统研究[J]. 应用光学,2019,40(5):812-817.
YE Mao, HUANG Pingao, LYV Yang, et al. Research on FPGA-based real-time video restoration system for smog image[J]. Journal of Applied Optics,2019,40(5):812-817.
|
[13] |
彭晔. 基于CCD图像的彩色插值算法研究[D]. 南京: 南京理工大学, 2007.
PENG Ye. Research on color interpolation algorithm based on CCD image [D]. Nanjing : Nanjing University of Science and Technology, 2007.
|
[14] |
HORE A, ZIOU D. An edge-sensing generic demosaicing algorithm with application to image resampling[J]. IEEE Transactions on Image Processing, 2021(20), 11: 3136-3150.
|
[15] |
罗潇, 孙海江, 陈秋萍, 等. Bayer格式图像的实时彩色复原[J]. 中国光学与应用光学,2010,3(2):182-187.
LUO Xiao, SUN Haijiang, CHEN Qiuping, et al. Real-time color restoration of Bayer format image[J]. China Optics and Applied Optics,2010,3(2):182-187.
|