Wolfram Language

Convert Images to Vector Graphics

Image vectorization, or conversion of a raster image into vector graphics, has applications in creating clip art, graphics design, product design and many more.

Generally, continuous photographs are not good candidates for vectorization. Smoothing and quantization can remove some of the image details and make it more suitable to be vectorized.

Simplify the contours of a color distance larger than 0.1 via a curvature flow filter.

Find the 16 most dominant colors with a minimum color distance of 0.1.

Convert the color segments into a graphic consisting of filled B-spline curves.

Related Examples

de es fr ja ko pt-br zh