作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (17): 211-212,. doi: 10.3969/j.issn.1000-3428.2007.17.072

• 人工智能与识别技术 • 上一篇    下一篇

一种新的基于链码的填充算法

巨志勇1,2,陈优广3   

  1. (1. 同济大学电子与信息工程学院,上海 200092;2. 上海理工大学计算机工程学院,上海200093; 3. 华东师范大学信息科学技术学院,上海 200062)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-09-05 发布日期:2007-09-05

New Filling Algorithm Based on Chain Code

JU Zhi-yong1,2, CHEN You-guang3   

  1. (1. College of Electronics and Information Engineering, Tongji University, Shanghai 200092; 2. College of Computer Engineering, University of Shanghai for Science and Technology, Shanghai 200093; 3. School of Information Science and Technology, East China Normal University, Shanghai 200062)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-09-05 Published:2007-09-05

摘要: 将计算机图形学的栅栏填充算法移植到链码的填充算法中,发展出了一种新的基于链码的填充算法。利用边界Freeman链码,定义了一种新的边界点分类方法,通过对边界上的左右端点到栅栏间的像素取补填充该区域,算法能填充任意复杂图像区域,不需要辅助内存空间和标记边界色。与现有的算法进行了对比实验,实验表明该文提供的算法对于图像具有填充速度快、效率高等优点。

关键词: Freeman链码, 栅栏, 区域填充

Abstract: A new filling algorithm based on chain code is transplanted from raster filling algorithm in computer graphics. A new boundary point classifying method is defined by using boundary Freeman chain code. The algorithm fills pixels between left point or right point of contour and raster line with complement operation, thus it can handle arbitrary complicated region without supplementary memory space or additional labeling. Experiments show that the proposed algorithm is faster and more efficient than existing ones.

Key words: Freeman chain code, raster, region filling

中图分类号: