欢迎访问《图学学报》 分享到:

图学学报

• 计算机图形学 • 上一篇    下一篇

基于栅格的任意复杂区域自动填充算法

  

  1. 闽南师范大学计算机学院,福建漳州 363000
  • 出版日期:2018-06-30 发布日期:2018-07-10
  • 基金资助:
    福建省教育厅中青年教师科研项目(JAT160290)

Automatic Filling Algorithm of Arbitrary Complex Region Based on Grid

  1. Computer College, Minnan Normal University, Zhangzhou Fujian 363000, China
  • Online:2018-06-30 Published:2018-07-10

摘要: 基于栅格与等间距平行线原理,设计出一种适用于任意复杂区域完全自动化填充
算法。首先,将整个填充区域栅格化。其次,绘制一组等间距平行线,计算每条平行线经过多
边形区域内栅格的行列序号值。最后,根据计算出栅格的行列序号值,采用自主循环方法对每
个栅格单元填充,最终实现整个区域的自动化填充。通过自主设计的应用程序验证多组数据表
示该算法能快速自动填充,对实验中出现的技术难点做了详细分析。

关键词: 栅格, 等间距平行线, 区域填充, 算法复杂度, 自动化填充

Abstract: A fully automated filling algorithm for any complex area is designed based on the principle
of grid and equal-spaced parallel lines. Firstly, we turn the whole area filling into grid. Secondly, we
draw a series of equidistant parallel lines and calculate row column ordinal value of each parallel line
going through the polygon grid. Thirdly, each grid cell is filled with the autonomous cycle method,
according to the calculation of the row and column number value of the grid. Finally, the entire area is
automatically filled. The verification of multiple sets of data through an independently designed
application program indicates that the algorithm can realize filling quickly and automatically, and a
detailed analysis is made on the technical difficulties that occur in the experiment.

Key words: grid, parallel lines, area filling, algorithm complexity, automatic filling