计算机科学 ›› 2017, Vol. 44 ›› Issue (7): 289-292.doi: 10.11896/j.issn.1002-137X.2017.07.052

• 图形图像与模式识别 • 上一篇    下一篇

时空域Retinex颜色校正算法的ZedBoard实现

周家豪,李佩玥,杨怀江   

  1. 中国科学院长春光学精密机械与物理研究所应用光学国家重点实验室 长春130033;中国科学院大学 北京100039,中国科学院长春光学精密机械与物理研究所应用光学国家重点实验室 长春130033,中国科学院长春光学精密机械与物理研究所应用光学国家重点实验室 长春130033
  • 出版日期:2018-11-13 发布日期:2018-11-13
  • 基金资助:
    本文受国家“863”计划资助

Implementation of Time-Spatial Domain Retinex Color Correction Algorithm on ZedBoard

ZHOU Jia-hao, LI Pei-yue and YANG Huai-jiang   

  • Online:2018-11-13 Published:2018-11-13

摘要: 提出了基于白平衡理论的时空域Retinex颜色校正算法,并且针对该算法的计算复杂度较高、在实时性要求较高的领域存在较大的局限性等缺点,设计了基于白平衡理论的时空域Retinex颜色校正算法的硬件平台。利用ZedBoard开发板上的PS和PL资源对输入的多帧低光照下采集的图像进行白平衡处理,提取场景光照信息图像,然后高效地实现Retinex颜色校正算法,向投影仪输出反映物体固有颜色的反射系数信息图像。用柯尼卡美能达CL200A色温照度计采集投影光的颜色数据,数据显示,校正算法扩展了图像的色域范围,使其更加接近标准色坐标的色域范围,校正后的白点更加靠近标准白点,提高了色彩分辨率,解决了色偏问题。比较了在PC上用MATLAB实现的耗时和在ZedBoard上实现的耗时,结果表明在ZedBoard上的耗时降低了接近两个数量级。

关键词: Retinex,白平衡理论,颜色校正,嵌入式,OpenCV

Abstract: The time-spatial domain retinex color correction algorithm based on white balance was proposed.Hardware platform was designed owing to its high computational complexity and bad real-time quality to realize the algorithm.ZedBoard uses resources of PL and PS to execute white balance processing,extracts light information,and then achieves retinex color correction algorithm efficiently.Eventually projector exports reflection coefficient information images representing objects inherent color.Color data of projection light are collected by color light meter named CL200A from Konica Minolta.Data show that the algorithm spreads color gamut of images to make it approach the standard.And white pixels after being corrected are closer to the standard white pixels.Color resolution is improved and color cast is solved.Compared with time cost of the algorithm’s implementation on PCs,time cost on ZedBoard is reduced about two orders of magnitude.

Key words: Retinex,White balance,Color correction,Embedded,OpenCV

[1] LI J F,FANG J L,DAI W Z.No-reference image quality assessment based on color perception[J].Chinese Journal of Scientific Instrument,2015,6(2):339-350.(in Chinese) 李俊锋,方建良,戴文战.基于色彩感知的无参考图像质量评价[J].仪器仪表学报,2015,6(2):339-350.
[2] MOREL J M,PETRO A B,SBERT C.A PDE formalization of Retinex theory[J].IEEE Transactions on Image Process,2010,2(12):2825-2837.
[3] WANG R G,ZHANG X,ZHANG X L,et al.A Novel Adaptive Retinex Algorithm for Image Enhancement[J].Acta Electronica Sinica,2010,8(12):2933-2936.(in Chinese) 王荣贵,张璇,张新龙,等.一种新型自适应Retinex图像增强方法研究[J].电子学报,2010,8(12):2933-2936.
[4] FANG S,YANG J R,CAO Y,et al.Local multi-scale Retinex algorithm based on guided image filtering[J].Journal of Image and Graphics,2012,7(7):748-755.
[5] YANG W T,YANG R G,FANG S,et al.Variable Filter Re-tinex Algorithm for Foggy Image Ehancement[J].Journal of Computer-Aided Design & Computer Graphics,2010,2(6):965-971.(in Chinese) 杨万挺,王荣贵,方帅,等.滤波器可变的Retinex雾天图像增强算法[J].计算机辅助设计与图形学学报,2010,2(6):965-971.
[6] PREMKUMAR S,PARTHASARATHI K A.An efficient ap-proach for colour image enhancement using discrete shearlet transform[C]∥International Conference on Current Trends in Engineering and Technology.2014:363-366.
[7] CHENG F J,DU X J,MA L,et al.Low-light Image Enhancement Based on Retinex[J].Video Engineering,2013,7(15):4-10.(in Chinese) 程芳瑾,杜晓骏,马丽,等.基于Retinex的低照度图像增强[J].电视技术,2013,7(15):4-10.
[8] YIN J C,LI H B,DU J P,et al.Low Illumination Image Retinex Enhancement Algorithm Based on Guided Filtering[C]∥Proceedings of Communications in Computer and Information Science.2014:639-644.
[9] GUO Y G,GE Q P,GUO N.Colour Correction Based on White Balance[J].Computer Engineering and Applications,2005,1(20):56-59.(in Chinese) 郭永刚,葛庆平,郭楠.利用白平衡进行偏色图像的颜色校正[J].计算机工程与应用,2005,1(20):56-59.
[10] FU H,HUANG X Y.Location Method of Leaf Image Specular Reflection Regions Based on Retinex[J].Computer Enginee-ring,2010,6(24):197-199.(in Chinese) 付慧,黄心渊.基于Retinex的树叶图像镜面反射区定位方法[J].计算机工程,2010,6(24):197-199.
[11] YUAN Y,TAN Y H,SUN H X,et al.Design and implementation of SCA based ON ZedBoard[J].Application of Electronic Technique,2015,41(11):31-33.(in Chinese) 袁扬,谭月辉,孙慧贤,等.基于ZedBoard的 SCA 架构的设计与实现[J].电子技术应用,2015,41(11):31-33.
[12] GONG Y H,WEI D B,QIAO L Y,et al.Developed of NAND Flash storage system based on Zynq[J].Electronic Measurement Technology,2014,7(12):53-57.(in Chinese) 龚有华,魏德宝,乔立岩,等.基于Zynq的NAND Flash存储系统研制[J].电子测量技术,2014,7(12):53-57.
[13] WANG Y Y,SU B H,QIU W S.Super-resolution video restoration system based on ZedBoard[J].Journal of Applied Optics,2015,6(4):537-542.(in Chinese) 王源圆,苏秉华,邱文胜.基于ZedBoard的超分辨率视频复原系统[J].应用光学,2015,6(4):537-542.
[14] LU Q Q,XI D D.Transplantation of embedded Linux system[J].Foreign Electronic Measurement Technology,2014,3(12):78-81.(in Chinese) 路青起,席丹丹.嵌入式Linux系统移植[J].国外电子测量技术,2014,3(12):78-81.

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!