roelj / inklingreader

A GNU/Linux-friendly version of the Wacom Inkling SketchManager.
GNU General Public License v3.0
50 stars 16 forks source link

Idea: Filter disturbing skipes #4

Closed MeraX closed 10 years ago

MeraX commented 10 years ago

I hope you're fine with me starting a new Issue for every new topic. While making the sketches for the other issue, I realized that the Inkling creates a lot of spikes: how it looks like after conversion to svg: 20 about how it looks on my paper (actually after cleaning it up an coloring using inkscape): stroke_with2 Inspecting the spikes in Inkscape I figured out that they consists of singular points positioned far away the stroke.

You could measure the distance between adjacent points: If the distance from point 1 to point 2 or from 2 to 3 is much larger than the distance from 1 to 3 you should throw point 2 away. (maybe you have to include also the point before and after in such a filter)

Sadly I'm not an expert in C and I can't try out my ideas myself. But maybe if you add more and more features one day you produced enough code so that I can add something by modifying and recombining of what is already there.

roelj commented 10 years ago

Creating new issues for each topic keeps things organized, so that's fine.

I'll see what I can do about this.

roelj commented 10 years ago

Your patch works perfectly. Thanks a lot!