YAO Peng-peng, FAN Zhen, ZHANG Sen-lin. Improved Potrace algorithm for vectorization of image of jacquard[J]. 2014, 33(4): 125-127. DOI: 10.13873/j.1000-97872014.04.031.
改进的Potrace提花织物图像矢量化算法
摘要
为了对提花织物图像进行矢量化
针对其颜色少、色块大的特点
提出了改进的Potrace图像矢量化算法。原始的Potrace算法只能实现对二值图像的矢量化
改进后的算法将位图中的色块逐个分解生成一个个的闭合路径
之后将这些闭合路径按照其各自分布拼接成树状结构并矢量化
最终生成一个完整的矢量图形。该算法在实际的应用中取得较好效果。
Abstract
In order to vectorize jacquard image
aiming at small amount of color and large color blocks
propose an improved Potrace algorithm for vectorization of image. The original Potrace algorithm can only realize vectorization of binary image and the improved algorithm decompose color blocks of bitmap one by one to closed paths which are combined to a tree structure later and merged to a vector graphic at last. This algorithm achieves good effect in practical use.