检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:刘万春[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[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:13.59.141.195