Jump to content
Hash, Inc. Forums

Curve Fitting - Raster/Vector (Research and Development)


Rodney

Recommended Posts

  • Admin

Posting this here mainly so that I can find it later.

This has roughly to do with a few thoughts I have related to 'drawing with splines' (as opposed to click/extend) and maintaining curvature (as much as possible) as control points are removed from or added to a spline and of translating/converting raster/bitmap lines into vector lines/splines.

 

https://github.com/ideasman42/curve-fit-nd#origin

 

 

The guy who adapted this code (Campbell Barton) is well known in Blender/Linux circles.

Original code is from Screen Gems, updated with insights from OpenToonz and further enhanced by Barton.

 

The library is described thusly:

High level utility library that takes a line and fits a bezier curve to it, in any number of dimensions - usable for freehand drawing and tracing raster images.

 

A (related) command line utility for tracing raster images and converting them to SVG can be found here:

 

https://github.com/ideasman42/raster-retrace

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...