An Active Contour Model for Silhouette Vectorization using Bézier Curves

Luis Álvarez, Jean-Michel Morel

TL;DR

This paper introduces a novel active contour model designed to refine the "tracing" or vectorization of silhouettes. By treating a collection of cubic Bézier curves as an evolving snake that minimizes its distance to a target shape, the authors significantly improve the accuracy of vector outputs from industry-standard tools like Adobe Illustrator and Inkscape.

What Problem Does This Paper Address?

Digital images are typically stored as grids of pixels (raster format). When you zoom into a binary silhouette in a raster image, you see "pixelation"—stair-step artifacts that don't exist in the original intended shape. Vectorization is the process of converting these pixels into smooth mathematical equations (usually Bézier curves) that can be scaled infinitely without losing quality.

The challenge lies in fidelity: where should the curve segments start and end? Which points are sharp corners, and which should be perfectly smooth? Even high-end software often produces vectorizations that deviate slightly from the original silhouette or fail to capture the optimal curvature. This paper seeks to bridge that gap by using variational optimization to "shrink-wrap" vector curves onto the original raster data.

Methods

The authors adapt the classic Geodesic Active Contour framework. Instead of a general evolving curve, they constrain the "snake" to be a collection of cubic Bézier curves.

Key technical innovations include:

  • Tangent-Based Parameterization: They reformulate the Bézier curve equations to explicitly include the orientation of tangent vectors at the endpoints.
  • Corner vs. Regular Points: The model distinguishes between "corner points" (where the shape changes direction abruptly) and "regular points" (where the curve must remain smooth). In regular points, the model constrains the tangents of adjacent curve segments to align perfectly.
  • Energy Minimization: The model minimizes a functional that calculates the Euclidean distance between the Bézier segments and the original silhouette boundary.
  • Simultaneous Optimization: Unlike simpler methods that fit curves to fixed points, this model simultaneously optimizes:
  • The location of the endpoints on the silhouette.
  • The orientation of the tangent vectors.
  • The internal parameters (control points) of each Bézier segment.
  • Length Regularization: An optional parameter ($w_n$) allows the model to penalize overly long or "wiggly" curves, effectively smoothing out noise.

Datasets

The paper evaluates the model using high-resolution (1024x1024) binary silhouettes of three distinct shapes:

  1. A Horse (complex legs and tail).
  2. A Cat (smooth back, sharp ears).
  3. A Camel (multiple humps and detailed head).

The model is tested using initial guesses provided by three sources:

  • Inkscape: An open-source vector editor.
  • Adobe Illustrator: The industry-standard professional tool.
  • Curvature-based method: A baseline algorithm introduced by the authors in the appendix.

Key Insights and Ideas

  • Refinement over Generation: The most powerful aspect of this model is that it is "initialization-agnostic." You can take a "good enough" vectorization from any software and use this model as a post-processing step to make it "near-perfect."
  • The Power of Constraints: By explicitly forcing tangents to align at regular points, the model prevents the "kinks" often seen in automated tracing tools, ensuring the resulting vector graphic looks hand-drawn and professional.
  • Geometric Fidelity: The authors show that standard tools often "cut corners" or "bulge out" unnecessarily. Their active contour approach acts like a physical tension system that pulls the curve into the most mathematically accurate fit possible.

Key Results

The authors measured the "average distance" (error) between the resulting vector curves and the original silhouette. The results showed a dramatic improvement across the board:

  • Vs. Inkscape: The model reduced the approximation error by 7% to 45%, depending on the complexity of the shape.
  • Vs. Adobe Illustrator: The model improved accuracy by 25% to 40%.
  • Vs. Curvature Baseline: Error was reduced by 30% to 54%.

Qualitatively, the "zoom-in" comparisons (Figure 4 in the paper) demonstrate that the optimized curves (black lines) hug the original silhouette (green lines) much more tightly than the initial outputs from Illustrator or Inkscape.

Limitations and Future Work

  • Computational Complexity: The main technical hurdle is that every step of the optimization requires calculating a distance function. For very complex shapes with thousands of segments, the computational cost could be high.
  • Manual Corner Detection: While the model handles corners beautifully, it currently relies on the initial vectorization method to identify them. If the starting tool misses a corner, the user might need to manually flag it, or the model might try to "smooth over" a sharp point.
  • Single-Curve Focus: The experiments focused on single closed loops (Jordan curves). While the authors note the model can be applied to shapes with holes (multiple loops) independently, a more integrated approach for complex multi-path illustrations wasn't explored in detail.

Summary updated

BibTeX
@article{alvarez2026active,
  author = {Luis Álvarez and Jean-Michel Morel},
  title = {{An Active Contour Model for Silhouette Vectorization using Bézier Curves}},
  journal = {J. Math. Imaging Vis.},
  year = {2026},
  doi = {10.1007/s10851-026-01282-0},
}
Figure