DrPTrace - A New Vector Tracing Library for Java
I was frustrated by the lack of vectorization libraries for Java, so I made one all by myself. I plan to use it in other Java projects where I'd rather output an SVG image instead of a PNG image.
How does it work? It's actually not that complicated. DrPTrace uses a "flood fill" algorithm to identify patches of color, and then traces around the outer edge of each patch, saving a dotted path. It then divides the dotted paths into a number of bezier curves, and jiggles the bezier curve control points until the best fit is achieved. And voila! A vectorized image.
While not as clever as Peter Selinger's PoTrace program, DrPTrace is a lightweight pure-Java library that you can easily embed in your Java programs.
Link to the GitHub page below: