• •    

形态学反走样算法的改进

刘镜荣1,杜慧敏2,杜琴琴3   

  1. 1. 陕西省西安市西安邮电大学
    2. 西安邮电学院
    3. 西安邮电大学 计算机学院
  • 收稿日期:2017-04-06 修回日期:2017-06-08 发布日期:2017-06-08
  • 通讯作者: 刘镜荣

An improved morphological anti-aliasing algorithm

  • Received:2017-04-06 Revised:2017-06-08 Online:2017-06-08

摘要: 摘 要: 为了满足大规模场景的实时性绘制,延迟渲染技术已成为图形渲染的主要模式。传统的硬件反走样技术不适用于延迟渲染技术,因此适用于延迟渲染技术的后处理反走样技术成为反走样技术研究的热点方向。本文在现有的形态学反走样相关算法基础上,作了两个方面的改进。一是优化了边缘提取算法中的阈值,能够提取出更详细的图像几何细节,得到更好的抗锯齿效果。二是对面积存储方式进行改进,降低了内存占用。本文在Microsoft DirectX SDK下实现了该改进算法,实验表明:改进后算法具有更清晰的轮廓线,同时存储纹理面积降低了51.93%。

关键词: 延迟渲染, 后处理反走样, 形态学, 阈值, 抗锯齿

Abstract: Abstract: In order to meet the real-time shading of large-scale scene, deferred shading technology becomes the main mode of graphics shading. The traditional hardware anti-aliasing technique is not suitable for deferred shading technology. Therefore, the post-processing anti-aliasing technique that applied to deferred shading technology has become the most vital research fields in anti-aliasing technology. In this paper, there are two improvements on the basis of the existing morphological anti-aliasing algorithm. First, the threshold value of the edge detection algorithm is optimized, and the more details of the geometric image can be extracted, which will get a better anti-aliasing effect. Second, the way of storage area is improved, which reduces the memory usage. This article implements the improved algorithm under the Microsoft DirectX SDK. Experiments indicate that the improved algorithm has a clearer contour, and the size of the stored texture is reduced by 51.93%.

Key words: deferred shading, post-processing, morphological, threshold value, anti-aliasing