一种面向动物照片的二值图画设计算法

2015-07-13 21:45:16王晓迎张慧娥
电脑知识与技术 2015年13期

王晓迎 张慧娥

摘要:针对“动物照片转化为矢量图”和“动物具象标志设计”这两种应用所需要的二值图画(具有“保留主干、便于识别和美观的特点),本文提出一种“面向动物照片的二值图画设计算法”。本算法应用图像形态学的“闭运算”使照片动物造型趋于简化(保留主干、便于识别),再对未检测出的动物关键轮廓点,通过交互程序将其拟合为最小二乘曲线,使构图完整和美观。实验表明,该算法的适应性较好且方便易行。

关键词:二值图画; 结构元素; 闭运算; 拟合多项式; 拐点

中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2015)13-0182-02

Abstract: For "animal photos converted into vector graphics" and "animal figurative logo design" ,both the applications require a binary picture (with "keep the trunk、identify easily and beautiful" features),an algorithm of binary pictures design based on photos of animals is developed. First the image morphology "closing operation" makes the animal picture shapes tend to simplify (keep the trunk, identify easily), and then the animal key contour points that do not detected, through an interactive program to fit to a least-squares curve, making complete composition and beautiful. It is shown in the experiments that this algorithm is flexible and simple to apply.

Key words: binary pictures; structural elements; closing operation; polynomial fitting; inflection points

图画一般是指用线条、色彩描绘出来的形象[1]。二值图画属于计算机中的二值图像,可以用黑白两种像素表示。二值图像是特征提取和模式识别的重要预处理过程,它不仅在字符识别、医学成像等图像检测领域有着广泛的应用,而且在广告媒体领域的标志图形设计、位图转换为矢量图应用中有着不可替代的重要作用。

本文所提出的一种“面向动物照片的二值图画设计算法”,主要是针对“动物照片转化为矢量图”和“动物具象标志设计”这两种应用所需要的二值图画设计的。该种二值图画具有对照片原图的高度概括(去掉细节保留主干)和便于人眼快速识别以及美观的特点。按照此特点,本文所设计的算法由两个部分构成:① 通过图像形态学的“闭运算”使照片中的动物形态趋于简化,然后用二维Otsu法将图像分割为二值化图像,使其具有“保留主干、便于识别”的特点。……

登录APP查看全文