为了避免纹理映射技术可能带来接缝走样的缺陷和过程纹理合成中复杂参数的调试,采用基于样图的纹理合成方法提出了一种新算法。该算法基于纹理的连贯性,在采用徐晓刚螺旋线状搜索算法的同时,结合了梁林的块拼贴纹理合成算法,即利用连贯性在样图中已合成纹理块位置向邻域扩展进行螺旋搜索,直到搜索到最佳匹配纹理块,然后进行纹理合成。大量实验结果表明,该算法与上述两种算法相比在合成效果上更加理想,合成时间也大大提高。
A new algorithm is proposed based on the method of texture synthesis from samples in order to avoid the defects of seam aliasing by texture mapping technique and debugging complex parameters in procedural texture synthesis.It combined XU Xiao-gang's spiral searching algorithmwith LIANG Lin's patch matching algorithm,using texture coherence to search for new matching patch among the neighbors of the previous synthesized patch along a spiral path in the sample image and continued this process in a recursive manner until the synthesizing image is fully filled.After experiments,this algorithm has achieved better desired results in terms of effect and time compared with the above two algorithms.