计算机应用 ›› 2012, Vol. 32 ›› Issue (07): 1860-1863.DOI: 10.3724/SP.J.1087.2012.01860

• 图形图像技术 • 上一篇    下一篇

自适应采样与融合的增强现实阴影生成算法

李红波,吴亮亮,吴渝   

  1. 重庆邮电大学 网络智能研究所,重庆400065
  • 收稿日期:2011-12-12 修回日期:2012-01-16 发布日期:2012-07-05 出版日期:2012-07-01
  • 通讯作者: 吴亮亮
  • 作者简介:李红波(1970-),男,甘肃兰州人,高级工程师,硕士,CCF会员,主要研究方向:数字媒体技术、机器视觉、增强现实;吴亮亮(1986-),男,江西九江人,硕士研究生,主要研究方向:数字媒体技术、增强现实;吴渝(1970-),女,重庆人,教授,博士,CCF会员,主要研究方向:网络智能、数字媒体技术。
  • 基金资助:

    教育部新世纪优秀人才支持计划项目(教技司[2008]274号);科技部“原创动漫软件开发技术人才”计划扶持项目(2009-593)

Shadow generation algorithm of augmented reality using adaptive sampling and fusion

LI Hong-bo,WU Liang-liang,WU Yu   

  1. Institute of Web Intelligence, Chongqing University of Posts and Telecommunications, Chongqing 400065, China
  • Received:2011-12-12 Revised:2012-01-16 Online:2012-07-05 Published:2012-07-01
  • Contact: WU Liang-liang

摘要: 针对现有增强现实(AR)应用中阴影生成算法绘制软阴影的真实性不足,提出一种自适应采样与背景融合的阴影生成算法。首先结合考虑遮挡的平面阴影算法计算虚拟对象投影阴影的空间位置分布;其次,改进膨胀腐蚀算法中软阴影的生成过程,提出一种依据近似点光源的形状类型进行自适应采样,从而获取假想点光源集合的软阴影绘制方法;最后,针对基于膨胀腐蚀算法使用阴影灰度图方法造成阴影的颜色被限制在单通道上,提出基于多通道与背景融合的方法。实验结果表明所提算法计算软阴影的颜色更加合理,软阴影的绘制方法更为有效,提高了阴影生成算法绘制软阴影的真实性。

关键词: 增强现实, 阴影生成, 融合, 自适应采样, 软阴影

Abstract: Since the soft shadow achieved by the existing shadow generation algorithms of Augmented Reality (AR) is unrealistic, the authors proposed a shadow generation algorithm using adaptive sampling and background fusion. First, the authors computed shadow spatial location distribution of virtual objects by using planar shadow algorithm which took occlusion into account. Then, to improve the procedure of soft shadow generation in swell and erode algorithm, an adaptive sampling method which got illuminant union according to shape types was presented. Finally, since shadow color gotten by gray image method was limited to single channel, the authors presented a method based on multi-channel and background fusion. The experimental results show that in the proposed algorithm the color of soft shadow is more reasonable and the method of soft shadow rendering is more effective. Consequently, the presented algorithm improves the realism of soft shadow.

Key words: Augmented Reality (AR), shadow generation, fusion, adaptive sampling, soft shadow

中图分类号: