Overview of VTracer 1.0 Architecture
masterVTracer 1.0 is a vectorization framework designed to be more modular than previous versions. It moves from a hardcoded pipeline to a pluggable architecture consisting of several distinct stages:
- Frontend: Algorithms that produce clusters or segmentation from a raster image.
- Curve fitting backend: Pluggable polyline-to-curve fitters (supporting pixel, polygon, spline, and future formats).
- Color fitting: Mapping cluster colors to final paints, supporting custom fixed palettes, quantization, and merging.
- Optimizer: A pass pipeline that reduces output size using relative path syntax, shorthand commands, and precision reduction.
- Compositing: Supports two modes:
- Stacked: Closed outlines.
- Mosaic: A true, gapless tessellation using boundary-graph tracing and shared-edge curve fitting.
Everything except image file I/O is designed to compile to wasm32-unknown-unknown.