ImageVectorViaLayerDecomposition
The source code of the paper: Image vectorization and editing via linear gradient layer decomposition.
Install / Use
/learn @Zhengjun-Du/ImageVectorViaLayerDecompositionREADME
Image vectorization and editing via linear gradient layer decomposition

This is the source code of the paper: Image vectorization and editing via linear gradient layer decomposition, authors: Zheng-Jun Du, Liang-Fu Kang, Jianchao Tan, Yotam Gingold, Kun Xu. Please fell free to contact us if you have any questions, email: dzj@qhu.edu.cn
Requirements
Windows 10
Microsoft Visual Studio 2019
OpenCV 4.1.2 or higher version
Nlopt 2.4.2 (included in "ImageVectorization/ThirdParty")
autodiff (included in "ImageVectorization/ThirdParty")
Python 3.7 (used to generate vector graph with .svg format)
Directories
- Data: we provide 10 examples in this directory
- ImageVectorization: main program for layer deomposition
- ProcessRegionSegImg: preprocess the region segmentation input
- Gen_svg_script: contain a python script to generate the vector graph
Usage
-
Open "./ImageVectorization" -> click ImageVectorization.sln -> run "main.cpp". It will automatically decomposes the input image into a set of layers and savea the results in "data/xxx/results".
If you want to test your examples, you could use the "ProcessRegionSegImg" project to preprocess your segmentation images first.
-
Run "Gen_svg_script/main.py" to generate the vector graph with .svg format.
Reference
[1] Du Z J, Kang L F, Tan J, et al. Image vectorization and editing via linear gradient layer decomposition[J]. ACM Transactions on Graphics (TOG), 2023, 42(4): 1-13.
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
