Abstract
This paper presents fill algorithms for boundary-defined regions in raster graphics. The algorithms require only a constant-size working memory. The methods presented are based on the so-called “seed fill” algorithms that use the internal connectivity of the region with a given inner point. Basic methods, as well as additional hcuristics for speeding up the algorithm, are described and verified. Empirical results are used to compare the time complexities of the algorithms for different classes of regions.
Similar content being viewed by others
References
Ackland BD, Weste NH (1981) The edge flag algorithma fill method for raster scan displays. IEEE Trans Comput 30:41–48
Brassel KE, Fegeas R (1979) An algorithm for shading of regions on vector display devices. Comput Graph 13:126–133
Cullen HF (1968) Introduction to general topology. Heath, Boston
Dunlavey MR (1983) Efficient polygon-filling algorithms for raster displays. ACM Transactions on Graphics 2:264–275
Fishkin KP, Barsky BA (1984) A family of new algorithms for soft filling. Comput Graph 18:235–244
Foley JD, Dam A van, Feiner SK, Hughes JF (1990) Computer graphics: principles and practice. 2nd edn, Addison-Wesley, Massachusetts: 979–986
Liebermann H (1978) How to color in a coloring book. Comput Graph 12:111–116
Little WD, Heuft R (1979) An area shading graphics display system. IEEE Trans Comput 28:528–531
Newman WM, Sproull RF (1973) Principles of interactive computer graphics. 2nd edn, McGraw-Hill, New York, p. 253.
Pavlidis T (1982) Algorithms for graphics and image processing. Computer Science Press, Berlin, pp. 167–193
Rosenfeld A, Kak AC (1982) Digital picture processing. 2nd edn, Academic Press, New York
Shani U (1980) Filling regions in binary raster images-a graph-thcoretical approach. Comput Graph 14:321–327
Smith AR (1979) Tint fill. Comput Graph 13:276–283
Tang GY, Lien B (1988) Region filling with the use of the discrete Green theorem. Comput Vision, Graph Image Processing 42:297–305
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Henrich, D. Space-efficient region filling in raster graphics. The Visual Computer 10, 205–215 (1994). https://doi.org/10.1007/BF01901287
Issue Date:
DOI: https://doi.org/10.1007/BF01901287