How to trace a line drawing image to be a “”real line“ vector drawing instead of a outline image?

I found that rhino command “trace” is very powerful to trace a image to be a vector file, like this

but what I need is a “real line” vector drawing, that means the new drawing is shape by vector lines with same width not by outlines of former lines.
Do I make it clear? Another GH plugin I try the “Rooster” is same as the Rhino “trace” command.
rooster.gh (9.5 KB)
I thought maybe the image sampler is the right method but I don’t know how to write the scripts. Is there anyone who know how to do it? Thank you so much!

Hello
I am not sure I understand. You have an image and you want a vector plot of it. So yes Rooster is a good option. Rooster is based on Potrace
http://potrace.sourceforge.net
If you want to use Rooster use Crvs it is the geometry.

He wants a vector drawing that rationalizes the ‘thick’ lines in the drawing to single vectors. That sound fairly impossible.

If you could get a version that’s ‘filled?’ Use Photoshop to fill-in the lines? Or reduce the resolution until the lines merge?? What is the point of this exercise?

I think maybe it is possible because the Illustrator got this function but it is too rough and the most important thing is AI don’t get so many variable to adjust compare with GH. like this one.

so I guess maybe GH got this function too by using image sampler.
sorry for my poor English.

Image sample has not this function.
Can you post a link to the image? It more easy to help with a support!

Thank you Laurent, you always provide so many useful resource, I like this kind of pages which are sharing the great amount of their researches!

Yes, I forget to upload that original image?sorry


I draw it by hand copying from a old book of traditional ancient drawings as below to make the lines more clear at first step.

And next step is what I ask above.

This pic from AI. And the line width is variable.This is what I mean “real line” vector image.

The only tool that I know to do what you want is Medial Axis. There was many discussion on this forum on this technique. I doubt it will work here. The tool you need is Rooster/Potrace with an option that I don’t know if it exists. You need something with curve with variable thickness.
We had a discussion of Potrace, so you could surely have more options.

It seems that there are some other tools


I tested a bit Vextractor that has some ability to extract median curve.
traditional graphic.3dm (614.3 KB)

2 Likes

I try all the 5 tools and I believe that AI still be the best one which could do the both “single line” and “outline” vectorize things. However Wintopo is a quick one and free. Please see the comparison of this two.


Thank you!

Thanks for reporting. It is always useful for future questions like that.
I suppose that like many “reverse engineering” question form this forum, the best tool to do this type of job is not an automated one but someone skilled with a drawing tool.