Abstract
Linear gradients are commonly applied in non-photographic artwork for shading and other artistic effects. It is sometimes necessary to generate a vector graphics form of raster images comprising such artwork with the expectation to obtain a simple output and plug it into a traditional workflow, to be further edited and arranged. Many such workflows support only linear gradients and our goal is to generate a standard vector form of the image that can fit such workflow. This vectorization process should be automatic with minimal user intervention. We present a simple image vectorization algorithm that detects regions of linear gradient in potentially noisy images and reconstructs the vector definition on the basis of that information. It uses a novel interval gradient optimization scheme to derive large regions of uniform gradient. We also demonstrate the technique on noisy and hand-drawn portraits.
Similar content being viewed by others
References
Adobe Systems Inc., Adobe illustrator CS5 (2010)
Barla, P., Bousseau, A.: Gradient art: creation and vectorization. In: Rosin, P., Colomosse, J. (eds.) Image and Video Based Artistic Stylization. Springer, New York, Nov 2012
Barrett, W.A., Cheney, A.S.: Object-based image editing. In: Proceedings of the 29th Annual Conference on Computer Graphics and Interactive Techniques, ACM, SIGGRAPH ’02, pp. 777–784, New York, NY, USA (2002)
Bradski, G.: The OpenCV Library. Dr. Dobb’s Journal of Software Tools (2000)
Canny, J.: A computational approach to edge detection. IEEE Trans. Pattern Anal. Mach. Intell. 8(6), 679–698 (1986)
Dori, D., Liu, W.: Sparse pixel vectorization: an algorithm and its performance evaluation. IEEE Trans. Pattern Anal. Mach. Intell. 21, 202–215 (1999)
Fan, K.-C., Chen, D.-F., Wen, M.-G.: A new vectorization-based approach to the skeletonization of binary images. In: Proceedings of ICDAR, pp. 627–630. IEEE Computer Society Washington, DC, USA (1995)
Fischler, M.A., Bolles, R.C.: Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography. Commun ACM 24(6), 381–395 (1981)
Gonzalez, R.C., Woods, R.E.: Digital Image Processing, 2nd edn. Addison-Wesley Longman Publishing Co. Inc, Boston (1992)
Hori, O., Tanigawa, S.: Raster-to-vector conversion by line fitting based on contours and skeletons. In: Proceedings of the Second International Conference on Document Analysis and Recognition 1993, pp. 353–358, Oct 1993
Inkscape. An open source linux/windows scalable vector graphics editor (2010)
Jeschke, S., Cline, D., Wonka, P.: Estimating color and texture parameters for vector graphics. Comput. Gr. Forum 30(2), 523–532 (2011). This paper won the 2nd best paper award at Eurographics 2011
Kansal, R., Kumar, S.: A framework for detection of linear gradient filled regions and their reconstruction for vector graphics. In: Proceedings of WSCG’2013, communication papers, pp. 220–229, June 2013
Lai, Y.-K., Hu, S.-M., Martin, R.R.: Automatic and topology-preserving gradient mesh generation for image vectorization. ACM Trans. Gr. 28(3), 85:1–85:8 (2009)
Lecot, G., Levy, B.: Ardeco: automatic region detection and conversion. In: Proceedings of Eurographics Symposium on Rendering (2006)
Lloyd, S.: Least squares quantization in PCM. IEEE Trans. Inf. Theor. 28(2), 129–137 (2006)
Mammadov, M.A.: A new global optimization algorithm based on dynamical systems approach. In: Proceedings of the 6th International Conference on Optimization: Techniques and Applications (ICOTA’ 04), Ballarat, Australia (2004)
Mumford, D., Shah, J.: Boundary detection by minimizing functionals. In: Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (1985)
Orzan, A., Bousseau, A., Winnemöller, H., Barla, P., Thollot, J., Salesin, D.: Diffusion curves: a vector representation for smooth-shaded images. In: Proceedings of ACM SIGGRAPH 2008 papers, SIGGRAPH ’08, ACM, pp. 92:1–92:8. New York, NY, USA (2008)
SVG working group. SVG format for vector graphics
Selinger, P.: Potrace: a polygon-based tracing algorithm (2003)
Sertl, S., Dellnitz, M.: Global optimization using a dynamical systems approach. J. Glob. Optim. 34(4), 569–587 (2006)
Sezgin, M., Sankur, B.: Survey over image thresholding techniques and quantitative performance evaluation. J. Electron. Imaging 13(1), 146–168 (2004)
Stockman, G., Shapiro, L.G.: Computer Vision, 1st edn. Prentice Hall PTR, Upper Saddle River (2001)
Sun, J., Liang, L., Wen, F., Shum, H.-Y.: Image vectorization using optimized gradient meshes. In: Proceedings of ACM SIGGRAPH 2007 papers, SIGGRAPH ’07, ACM, New York, NY, USA (2007)
Tamura, H.: A comparison of line thinning algorithms from digital geometry viewpoint. In: Proceedings of the Fourth International Joint Conference Pattern Recognition, Kyoto, Japan (1978)
University of Ballarat. GANSO library for optimization functions
Xia, T., Liao, B., Yu, Y.: Patch-based image vectorization with automatic curvilinear feature alignment. In: Proceedings of ACM SIGGRAPH Asia 2009 papers, SIGGRAPH Asia ’09, ACM, pp. 115:1–115:10. New York, NY, USA (2009)
Zhang, S.-H., Chen, T., Zhang, Y.-F., Martin, R.R.: Vectorizing cartoon animations. IEEE Trans. Vis. Comput. Gr. 15(4), 618–629 (July 2009)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Kansal, R., Kumar, S. A vectorization framework for constant and linear gradient filled regions. Vis Comput 31, 717–732 (2015). https://doi.org/10.1007/s00371-014-0997-3
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00371-014-0997-3