TL;DR
COVec introduces intrinsic image decomposition to the vector domain, breaking down real-world photographs into separate albedo, shade, and light vector layers. Inspired by the classical artistic principle of Clair-Obscur, this framework achieves exceptional visual fidelity while maintaining semantically concise, easily editable SVG graphics.
What Problem Does This Paper Address?
Vectorizing simple icons or emojis is relatively straightforward, but real-world photographs present a massive challenge due to complex lighting, shadows, and highlights. Current optimization-based vectorization methods try to match these smooth tonal variations by generating thousands of tiny, fragmented vector paths.
This "path explosion" destroys the semantic structure of the image. Instead of a clean vector file with recognizable components (like a face, a car, or a tree), the output becomes a bloated jigsaw puzzle of microscopic shapes. This makes the resulting Scalable Vector Graphics (SVG) file practically impossible for a human designer to edit, animate, or recolor cleanly.
Methods
COVec tackles this by adapting the classical art concept of Clair-Obscur (chiaroscuro)—using strong contrasts between light and dark to give subjects a three-dimensional volume. The authors translate this into a vector-domain image formation equation:
$$V_{final} = V_A * V_S + V_L$$
Where $V_A$ represents the albedo layer (intrinsic surface color), $V_S$ is the shade layer (geometric light attenuation), and $V_L$ is the light layer (specular highlights and reflections).
The pipeline operates in three main phases:
- Layer Initialization: The albedo layer is initialized using semantic masks generated by a pretrained Segment Anything Model (SAM) acting on a raw albedo map. Crucially, the illumination layer is initialized using a novel region-wise semantic binarization strategy. Instead of applying a single global threshold to find shadows (which fails because shadow intensity varies across a photo), COVec calculates local thresholds within each semantic object boundary.
- Structural Optimization: Using a differentiable rasterizer, the framework jointly optimizes the geometry and color of the albedo and combined illumination layers. This stage balances a structure loss ($\mathcal{L}_{struct}$), which keeps vector paths aligned with their semantic masks, and a reconstruction loss ($\mathcal{L}_{recon}$), which ensures the blended composite matches the target image.
- Illumination Refinement & Layer Separation: The albedo layer is frozen, and the illumination layer is refined by progressively adding new paths to high-error regions. Finally, these illumination paths are separated into the shade layer (standard color range) and the light layer (values exceeding the normal range, representing highlights), utilizing native SVG blending modes like multiplicative and additive blending.
Datasets
The authors evaluated COVec on three distinct datasets, each containing 100 randomly selected images:
- Face Dataset: Derived from the FFHQ dataset, featuring high-quality facial photographs spanning diverse ethnicities, ages, and genders.
- Scene Dataset: A collection of varied objects, animals, and natural environments sampled from the Things and TID2013 datasets.
- Emoji Dataset: Simple icons from the Noto Emoji dataset, used to verify how a simplified variant of the model handles clean, non-illuminated graphics.
Key Insights and Ideas
- Vector-Domain Intrinsic Decomposition: By separating lighting from material color natively within the SVG format, COVec mirrors how professional artists actually structure digital paintings.
- Local vs. Global Thresholding: Shadows are context-dependent; a shadow on a white shirt has a different pixel intensity than a shadow on black hair. Localized, region-wise binarization ensures that vector shadow boundaries strictly respect object geometry rather than bleeding across semantic boundaries.
- Leveraging Native SVG Blending: Instead of trying to simulate complex gradients using thousands of flat, opaque shapes, COVec utilizes SVG's native
multiplymode for shadows andplus-lightermode for highlights. This drastically reduces the required path budget while enhancing realism.
Key Results
- Higher Fidelity with Fewer Paths: Quantitative evaluations using Mean Squared Error (MSE) and Perceptual Similarity (LPIPS) showed that COVec consistently outperforms state-of-the-art methods like LayerVec and LIVE across different path budgets.
- Unprecedented Editability: Because the intrinsic color is decoupled from the environment lighting, users can seamlessly alter the albedo layer (e.g., changing a white horse to brown or adding patterns to a taxi) without disrupting the underlying light-and-shade structure. The illumination naturally adapts to the new base tones.
Limitations and Future Work
Not discussed in the paper.
Summary updated