Abstract
This paper introduces a fast, parallelizable framework for converting raster images into smooth vector graphics using Catmull-Rom spline fitting. By decoupling image segmentation from the curve-fitting process, the authors provide a highly customizable tool that balances aesthetic "cartoon-like" abstraction with computational efficiency, suitable for soft real-time applications.
Introduction
Raster images are inherently limited by their resolution; zooming into a pixel-based image inevitably results in "blocky" or jagged artifacts. Vectorization solves this by representing images as mathematical primitives like curves and polygons, which remain sharp at any scale. However, traditional vectorization tools often produce either overly simplistic line art or computationally expensive gradient meshes that are difficult to edit.
This research addresses these limitations by proposing a pipeline that prioritizes smoothness and artistic abstraction. The goal is to create a method that is efficient enough for real-time use, such as in live webcam filters, while producing results that are visually superior to standard polygonal approximations.
Methodology
The proposed vectorization pipeline is divided into four modular stages, allowing for significant flexibility and parallelization:
- Image Segmentation: The process begins by dividing the image into regions of similar color. The framework supports various techniques, including Statistical Region Merging (SRM) and Graph-based segmentation, each offering a different artistic feel.
- Subpixel Boundary Generation: To eliminate the "staircase" effect of raw pixels, the algorithm identifies boundaries at a subpixel level. It specifically focuses on "junction points"—locations where three or more regions meet—which are essential for preserving the image's underlying structure.
- Spline Fitting: Instead of using straight-line segments, the method fits Catmull-Rom splines to the boundary points. These splines are uniquely suited for this task because they are guaranteed to pass through their control points, ensuring that region boundaries remain perfectly aligned without gaps.
- SVG Generation: To ensure compatibility with standard software, the Catmull-Rom splines are mathematically converted into Cubic Bezier curves, the standard format for SVG and PDF files.
Results and Discussion
The performance of the method was evaluated using standard benchmarks, including the Kodak Image Suite and classic computer vision test images like "Mandrill" and "Lena."
Aesthetic Quality and Abstraction
A key insight of this work is that for many digital art applications, smoothness and abstraction are more valuable than perfect data compression. By adjusting the sampling resolution—the number of control points used for the splines—users can tune the output from a detailed reconstruction to a highly stylized, "cartoonish" look.
Computational Efficiency
The algorithm is designed to be "embarrassingly parallel." Since each boundary segment is independent, the spline-fitting process can be distributed across multiple CPU or GPU cores. The junction point extraction has a computational complexity of $O(4 * N^2)$, and the overall pipeline is efficient enough to achieve soft real-time performance on standard hardware for images up to 480x360 resolution.
While the resulting file sizes (measured in bits per pixel) may be slightly higher than those of purely compression-focused tools like VectorEye, the authors argue that the gain in aesthetic quality and processing speed is a worthwhile trade-off.
Conclusion
This novel vectorization method provides a powerful tool for artists and developers, offering a unique blend of speed and visual appeal. While the current implementation is dependent on the quality of the initial segmentation and is not yet optimized for minimum file size, it sets a strong foundation for future work in real-time vector graphics and intelligent control point selection.
Summary updated