Silhouette Vectorization by Affine Scale-Space

Yuchen He, Sung Ha Kang, Jean-Michel Morel

Converting a jagged raster image into a smooth, scalable vector graphic (SVG) is a classic problem in computer vision. While tools like Adobe Illustrator and Inkscape have been doing this for years, they often produce "messy" results—hundreds of unnecessary control points that make the files bulky and difficult for designers to edit.

A new paper titled "Silhouette Vectorization by Affine Scale-space" by Yuchen He, Sung Ha Kang, and Jean-Michel Morel introduces a mathematically grounded approach to this problem. By looking at how shapes evolve as they are smoothed, the authors have developed a method that produces remarkably clean vector outlines with significantly fewer control points than industry-standard software.

TL;DR

The researchers use affine scale-space—a geometric way of smoothing shapes—to identify the most "meaningful" corners of a silhouette. By tracing these corners from a blurry, coarse version of the image back to the original sharp pixels, they generate highly accurate Bézier curves with up to 60-90% fewer control points than state-of-the-art tools.

What Problem Does This Paper Address?

When you zoom into a digital silhouette (like a logo), you see pixels. Vectorization turns those pixels into mathematical curves (Bézier cubics). The challenge is finding the right control points.

If you use too few points, you lose the "soul" of the shape (sharp corners become rounded). If you use too many, the file becomes a nightmare to edit and inefficient to store. Most existing algorithms use a "splitting" approach: they start with a rough line and keep adding points until the curve is "close enough" to the pixels. However, these points often lack geometric meaning and are unstable—if you rotate the image slightly, the algorithm might pick entirely different points.

Methods

The authors' core innovation is using Affine Scale-space to find control points. Here is the breakdown of their three-step pipeline:

  1. Sub-pixel Extraction & Smoothing: They don't just look at pixel edges. They use bilinear interpolation to find the "true" boundary at a sub-pixel level. They then apply an Affine Shortening Flow—a PDE-based smoothing technique that shrinks the curve while preserving its geometric properties under transformations like rotation or shearing.
  2. Backward Tracing (The "Aha" Moment): As a shape gets smoother, noise and small bumps disappear, leaving only the most prominent corners. The authors identify these "salient" corners at a coarse (blurry) scale and then trace them backward through the scales to find their exact location on the original high-resolution boundary. This ensures the control points represent real geometric features, not just pixel noise.
  3. Adaptive Bézier Fitting: Once they have these robust anchor points, they fit cubic Bézier curves between them using a least-squares approach. If the error is still too high in certain areas, they adaptively add more points until a user-defined accuracy threshold is met.

Datasets

The authors evaluated their method on a Silhouette Data Set consisting of 20 diverse shapes, including animals (cats, butterflies), complex text designs, and geometric patterns. These silhouettes were sourced from svgsilh.com and released under Creative Commons CC0. They compared their results against industry heavyweights: Vector Magic, Inkscape, and Adobe Illustrator 2020.

Key Insights and Ideas

  • Causality in Scale-space: The most important insight is that "true" corners persist across scales. By starting at a coarse scale, the algorithm ignores "staircase" artifacts caused by pixels and focuses on the actual geometry of the object.
  • Affine Invariance: Because the smoothing flow is "affine intrinsic," the resulting control points are remarkably stable. If you rotate or shear a cat silhouette, the control points will stay on the same anatomical features (like the tips of the ears), which is a major win for feature detection.
  • Degenerate Case Handling: The paper includes a clever "isoperimetric inequality" check. If a shape is mathematically close to a circle, the algorithm skips the Bézier fitting entirely and simply outputs a perfect circle, saving even more data.

Key Results

The quantitative improvements are substantial:

  • Point Reduction: Compared to Adobe Illustrator's "Black and White Logo" setting, the proposed method achieved a 67.38% mean relative reduction in the number of control points while maintaining higher visual fidelity.
  • Compression: For a complex text image, the method reduced the file size from 346 KB (raster) to just 36 KB (vectorized integers), a nearly 90% compression ratio.
  • Stability: In "repeatability" tests (rotating an image and re-vectorizing it), the proposed method stayed near a score of 1.0, whereas standard feature detectors like Harris or FAST dropped significantly as the rotation angle changed.

Limitations and Future Work

While the results are impressive, the paper notes a few boundaries:

  • Closed Curves Only: The current algorithm is designed for closed silhouettes. It does not yet handle "open" paths (like a single brush stroke that doesn't loop back).
  • Binary Focus: The method is optimized for binary silhouettes or high-contrast boundaries. Applying this to low-contrast, noisy natural photos would likely require a more robust pre-segmentation step.
  • Computational Cost: While the paper mentions a processing time of 0.83 seconds for a large text image, the PDE-based smoothing and backward tracing are more mathematically intensive than simple splitting heuristics.

For researchers in computer graphics or computer vision, this paper provides a refreshing return to geometric first principles to solve a very practical engineering problem.

Summary updated

BibTeX
@article{he2022silhouette,
  author = {Yuchen He and Sung Ha Kang and Jean-Michel Morel},
  title = {{Silhouette Vectorization by Affine Scale-Space}},
  journal = {J. Math. Imaging Vis.},
  year = {2022},
  url = {https://openreview.net/forum?id=TLCLBL6ySO},
}
Figure