一种实时高速的八连通区域填充算法  被引量:19

New High-speed Scanline Algorithm for Filling 8-adjacent Connection Area

在线阅读下载全文

作  者:刘万春[1] 刘建君[1] 朱玉文[1] 陈小春[1] 

机构地区:[1]北京理工大学信息科学技术学院计算机系,北京100081

出  处:《计算机应用研究》2006年第6期177-179,共3页Application Research of Computers

摘  要:区域填充是一个将指定不规则区域内部像素填充为填充色的过程,在计算机辅助设计和图像处理等领域有广泛应用。现有算法存在着只适用于四连通区域或者算法速度不高等缺点。提出了一种可以运用在八连通区域上的扫描线种子填充算法,同时在算法的实现上摒弃函数调用方式,以线性空间来模拟栈结构。通过对数十万个不规则区域的测试统计,此算法不但适用于八连通区域的填充,速度上也有7%~33%不同程度的提高。The process of filling the inner pixels of specified area with specified color called area filling, it' s used widely in the fields of Computer-Aided Design and Computer Graphics. Existing algorithms have the disadvantages of low speed or can only be used on 4-adjacent connection area. This paper presents an improved scan line algorithm for area filling, based on the analysis of the classical one. The new algorithm can be applied on 8-adjacent connection area. Moreover, we use lineal space instead of classical stack and access data directly in the implemental details. Compared with the former algorithms, the speed was accelerated to 107% -133%, got by testing nearly one million irregularly areas.

关 键 词:八连通 区域填充 扫描线算法 种子点 高速 

分 类 号:TP391[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象