在结构光几何重建中,由于拍摄方式和场景照明情况的复杂多变,使得产生的图像可能会因为光线的亮暗不均造成图像细节的缺失.为此,提出一种基于HSV色彩空间变换的带颜色恢复Retinex算法和色彩饱和度校正策略.针对颜色保持的需要,首先将传统RGB空间上的多尺度Retinex算法转换到HSV颜色空间;然后通过分析HSV颜色空间模型来增强模型中的V分量,同时利用相关系数使s分量随着V分量的增强进行自适应调整;最后将HSV模型转换到RGB空间,使增强后的图像颜色得到保持.实验结果表明,该算法应用于结构光条纹图像的增强中将使结构光图像在颜色得到保持的同时细节信息也得到了增强,更利于后续条纹信息的提取及自动编码.
In structured light geometry reconstruction, as the projecting modes and lighting conditions are complex and changeful, detail information in dark areas are usually lost in the result images. An improved Retinex algorithm are proposed based on HSV color space with color restoration and color saturation correction strategy. According to the requirement of color retain, the algorithm includes following steps. Firstly, an input color image is converted from RGB color space into HSV color space. Then the traditional multi-scale Retinex algorithm is applied only to V-component through the analysis of HSV color space model. At the same time, the coefficient of correlation is used to adaptively adjust the S-component base in the enhancement of V-component. Finally by transforming HSI model into RGB model, the enhanced color image with color restoration is obtained. Experimental results show that, the algorithm used in structured light stripe image enhancement, the color of the structured light image is maintained and the detail information is enhanced very well, which is more favorable to follow-up stripe information extraction and automatic coding.