区域填充扫描线算法的改进
IMPROVEMENT OF AREA FILLING SCANLINE ALGORITHM
-
摘要: 对经典区域填充扫描线算法进行了改进,改进算法不但消除了经典算法中象素点颜色判读的重复操作,而且利用相邻扫描线填充次序上的连贯性,消除了不必要的回溯处理,并减少了回溯扫描区间。最后,给出了算法之间的效率比较,由比较结果可以看出本文的算法较大幅度地提高了算法的效率。Abstract: This paper presents an improved scanline algorithm for area filling. The new algorithm not only eliminates the repeating operations for getting pixel colors in classical algorithm, but also avoids the redundant examinations of the previously filled adjacent line and reduces the rescan span by using the coherence of the filling order of adjacent lines. At last, the paper also compares the efficiency of several algorithms. It can be concluded that the new algorithm increases efficiency greatly.
下载: