激光与光电子学进展, 2017, 54 (5): 051001, 网络出版: 2017-05-03
基于梯度的块尺寸自适应Wang Tiles纹理合成算法
Gradient-Based Wang Tiles Texture Synthesis Algorithm with Adaptive Block Size
图像处理 纹理合成 纹理块尺寸 梯度结构信息 image processing texture synthesis Wang Tiles Wang Tiles size of texture block gradient structure information
摘要
基于Wang Tiles纹理合成算法原理, 研究纹理图像梯度结构信息、纹理块自适应尺寸以及Tiles集合制作方法对纹理合成质量及合成时间的影响。在判断两纹理块相似程度时, 将纹理块的颜色误差和梯度信息同时作为纹理块相似程度的度量标准, 其合成效果优于只考虑颜色误差的传统纹理合成算法。同时, 使用优化后的纹理块尺寸进行纹理合成, 能缩短纹理合成时间。另外, 采用改进后的Tiles集合能取得比传统方法更好的合成效果。实验证明, 与基于Wang Tiles的传统算法相比, 改进算法在取得较好合成质量的同时, 能提高纹理合成的速度。
Abstract
Based on the Wang Tiles texture synthesis algorithm, the effects of texture gradient structure information, texture blocks with adaptive size, and Tile set generation method on the texture synthesis quality and time are studied. The color error and gradient information of the texture blocks are both used as the standard to measure the similarity of two blocks in the texture synthesis algorithm. It is better than the traditional texture synthesis algorithm, which only considers the color error to determine the similarity of two texture blocks. Meanwhile, using the optimized block size for texture synthesis, the texture synthesis time is reduced. In addition, using the improved Tile set to achieve texture synthesis, we can achieve better results than those of the traditional methods. Experimental results show that this algorithm can improve both the quality and the speed of texture synthesis, compared with the traditional Wang Tile-based algorithm.
谭永前, 曾凡菊. 基于梯度的块尺寸自适应Wang Tiles纹理合成算法[J]. 激光与光电子学进展, 2017, 54(5): 051001. Tan Yongqian, Zeng Fanju. Gradient-Based Wang Tiles Texture Synthesis Algorithm with Adaptive Block Size[J]. Laser & Optoelectronics Progress, 2017, 54(5): 051001.