物像空间依赖的乱针绣针法定义与风格生成
Vector and Pixel Space Depended Stitch Definition and Style Transfer for Random-Needle Embroidery
-
摘要: 为了模拟乱针绣这一被列入非物质文化遗传的中国刺绣工艺,提出一种图像风格化生成方法.首先在相互依赖的物像2个空间定义并生成由绣线聚集所构成的乱针绣绘制基元—针法,其中,在物空间中从绣线集合的朝向、交叉夹角、长度以及粗细等方面定义了针法中绣线的不同聚集方式,在像空间中对其进行栅格化得到点阵针法,并构建了针法词典对生成的点阵针法进行统一表示;其次对于输入图像,在对其进行分割和特征提取的基础上,将每个区域划分子区域,实现对区域内容的细化描述;最后在绘制阶段,对于每个子区域,采用稀疏编码方法依据子区域内容从针法词典中选择最优字典基组合,以合成新的针法来表现其内容,并依据子区域特征设定针法排布参数,将其放置在画布上以得到绘制结果.实验结果表明,该方法能够有效地将输入图像转换为具乱针绣风格的艺术图像.Abstract: We present an image stylization method to simulate Random-needle Embroidery which has been designated as Intangible Cultural Heritage.We first define the rendering primitive of this art,namely,stitch,i.e.,collection of threads arranged in a certain pattern inseparably both in vector space and pixel space in vector space,we design different thread distributions which include the orientations,intersection angles,lengths and widths of threads in stitches,and in pixel space,the rendering primitives are generated by rasterizing the stitches on 2D pixel arrays.We also generate a dictionary to represent the generated stitches.Afterwards,for an input image,based on image segmentation and feature extraction,each region is partitioned into sub-regions to describe the content of the region.Finally,for each sub-region new stitches can be synthesized by optimizing a linear combination of stitch dictionary atoms via sparse representation,and rendering image is generated by placing stitches with different attributes on the canvas.Experimental results show that our method can effectively translate the input image into an art image with the style of random-needle.