文章快速检索 高级检索
RGB和HSI颜色空间的一种改进的阴影消除算法

1. 济南大学 信息科学与工程学院, 山东 济南 250022;
2. 山东省网络环境智能计算技术重点实验室, 山东 济南 250022

An improved shadow removal algorithm based on RGB and HSI color spaces
HAN Yanbin1,2, GUO Xiaopeng1, WEI Yanwen1,2, LI Hengjian1,2
1. School of Information Science and Engineering, University of Jinan, Jinan 250022, China;
2. Shandong Provincial Key Laboratory of Network Based Intelligent Computing, Jinan 250022, China
Abstract: It is critical to exactly extract moving targets in intelligent video surveillance. There are many moving target detection algorithms, but for all the effects of shadow elimination are not ideal. In order to remove the shadow, an improved shadow removal algorithm based on RGB and HSI color spaces is presented. The analysis of the pixels in videoes shows that the hue is approximately consistent before and after the pixels are shaded, and there exists a linear relation between this approximate consistency and the value of luminance. On this basis, by utilizing the proportion of each color component in the color spaces and the relative change rates of brightness, the shadow of a moving object can be removed. The experimental results show that the shadow removal effect of this algorithm is better than that of the algorithm with (r, g, I) color space. In addition, it can also cope with holes in moving targets and is a supplement to the moving object detection algorithm.
Key words: target detection     shadow removal     color space     hole phenomenon     video analysis

1 阴影分析和颜色空间选取 1.1 阴影分析

1.2 颜色空间的选取

2 改进的阴影去除算法

 图 1 孔洞现象 Fig. 1 Holes phenomenon

1) 对场景进行背景建模，获取背景模型图像xb

2)根据式(3)提取背景图像的混合颜色空间各分量 rgI

3)从视频当中获取每帧图像，并计算混合颜色空间分量rgI

4)用式(6)取代式(4),计算当前像素点和背景图像颜色信息差值，进一步判定当前像素是否属于目标图像像素。

3 实验结果及分析

 图 2 (r,g,I)算法和(r，g,ΔI)室内阴影去除效果比较 Fig. 2 Comparison of shadow removal results between (r,g,I) algorithm and (r，g，ΔI) algorithm indoor

 图 3 (r,g,I)算法和(r,g,ΔI)算法室外阴影去除效果比较 Fig. 3 Comparison of shadow removal results between(r,g,I) algorithm and (r,g, ΔI) algorithm outdoor

4 结束语

DOI: 10.11992/tis.201410010

0

#### 文章信息

HAN Yanbin, GUO Xiaopeng, WEI Yanwen, LI Hengjian
RGB和HSI颜色空间的一种改进的阴影消除算法
An improved shadow removal algorithm based on RGB and HSI color spaces

CAAI Transactions on Intelligent Systems, 2015, 10(05): 769-774.
DOI: 10.11992/tis.201410010