摘要
纹理画刷是一种交互式纹理生成工具,能够在用户控制下生成所需要的纹理。本文提出了一种基于运行时纹理合成的纹理画刷实现算法。纹理合成采用逐块合成的方式,每次将整个样本图以选定的位移放置到合成图中,然后用Graph Cut来决定最终的输出区域。在预处理过程中计算得到两个相同样本图间的最佳切合位移集合,在合成过程中,贴块位移搜索范围限定在由此集合及用户控制所决定的一个很小的范围内,使合成速度达到实时。另外通过对"孤立块"采取"虚拟贴块法"选取贴块位移,较好地保持了画刷所生成纹理的一致性。实验结果表明该纹理画刷的纹理生成速度满足与用户交互的需求,且生成纹理的质量高。
This paper proposes a texture brush based on run-time texture synthesis. In each step of synthesis,the sample texture is placed into the output with a selected displacement, and graph cut technique is used to determine the optimal patch boundaries in the overlap region. As a preprocessing process, the matching errors for all relative displacements between two samples are calculated and an optimal set containing displacements with the smallest matching errors is obtained. In the process of run-time synthesis under user control, the displacements for patch pasting are searched within a very small scope determined by the optimal set and user control, so the speed is very fast. By using "virtual patch pasting" method to select displacements for "isolated patches", the consistencies of the generated textures are guaranteed. Experimental results show that the texture brush can generate textures with high quality in real-time.
出处
《计算机科学》
CSCD
北大核心
2008年第6期251-254,共4页
Computer Science
基金
国家自然科学基金项目(60573019)
广东省自然科学基金项目(05103541
05300198
07300561)的资助