Abstract
This paper presents a novel algorithm for converting raster images into high-quality Scalable Vector Graphics (SVG). By utilizing Statistical Region Merging (SRM), the proposed method achieves photorealistic results with significantly reduced file sizes compared to existing tools. The system simplifies user interaction by requiring only a single parameter to balance image quality and compression.
Introduction
Vectorizing simple clip-art is a solved problem, but high-resolution photographs present a significant challenge. Standard vectorization tools often suffer from "perceptual drawbacks," producing images that either look blocky and artificial or result in massive file sizes that negate the benefits of vector compression.
There exists a fundamental gap between the raster world of pixels and the vectorial world of geometric primitives. Most current solutions require complex parameter tuning that is inaccessible to the average user. This research addresses the need for a system that maintains photorealism, ensures resolution independence for mobile displays, and keeps file sizes manageable through an automated, statistically-driven approach.
Methodology
The proposed pipeline consists of two primary stages: Statistical Region Merging and Smart Contouring.
Statistical Region Merging (SRM)
Instead of relying on standard edge detection, the algorithm employs SRM to partition the image. SRM treats an image as a set of distributions from which color levels are sampled, using a merging predicate to group pixels into homogeneous regions. This process is controlled by a single parameter, $Q$, which dictates the "coarseness" of the segmentation. Increasing $Q$ allows for finer detail at the cost of larger file sizes.
Smart Contouring and SVG Mapping
Once regions are identified, the algorithm categorizes pixels to facilitate efficient boundary tracking. Pixels are classified into four types: Internal (surrounded by the same region), Border (on the edge), Close (border pixels adjacent to internal pixels), and Open (remaining complex border pixels).
The system tracks these boundaries in a counter-clockwise direction to generate SVG <path> primitives. To optimize file size, the authors utilize relative coordinates and element grouping (<g>) to share common graphical properties across the vector file.
Experimental Results
The algorithm was evaluated using standard test images (e.g., "Lena") and the VISTA dataset. The researchers compared their method against several competitors, including Vector Eye, SWaterG, and SVGenie.
Rate-Distortion Performance
The proposed method consistently outperformed state-of-the-art techniques in rate-distortion metrics. For instance, using the "Tiger" image, the algorithm achieved a PSNR of 26.51 at 99 KB, whereas the VISTA technique only reached 19.69 at a similar file size (94 KB).
Qualitative results further demonstrate visual superiority; the method avoids the "patchy" artifacts common in other vectorizers, maintaining a high degree of photorealism while achieving lower bit-per-pixel (bpp) values.
Conclusion and Future Work
By tying the segmentation process to a single statistical parameter, the authors have created a tunable system that captures the structural components of digital photos as perceived by the human visual system.
Future improvements will focus on replacing straight-line segments with Bezier curves to further smooth edges and reduce data points. Additionally, the authors plan to refine the heuristics used for tracking boundaries in noisy regions and explore pre-filtering techniques to enhance the final visual output.
Summary updated