Hi everyone, I am working on a project that is based on the research done by ETH, from this
I am running into a dead-end trying to extract a closed polyline from a base bitmap. My idea is to read the black colour of the image and get the outer edge of the colour and then discretize it. So far I have tried to map the bitmap into a mesh and extract the faces with black colour, but it is not the result I am looking for.
Here is the base bitmap and the result I am getting:
What I am looking for is something like this (the red polylines):
Does anybody have any suggestions?
Thank you in advance!
You could convert the bitmap to a heightmap, mapping brightness to Z, then take a contour.
You can use rooster plugin, quite similar to the Vectorize command inside Rhino
If one day you want just the network
i read through many posts and discussions but could not finde a solution to the problem i am facing.
With the plugin Rooster i traced the black and white image to curves but now they are all doubled i only want a polyline or simple lines to represent the picture below.
I found a method for finding the Medial Axis but the curves resulting from this are to complex:
Image Tracing.gh (277.5 KB)
I hope you know a different method to simplify the double curves or the Meda…
If you want better smoothing
i am looking for a method to transfer a picture of a Network to a clean vectorized Network of Nodes and simple lines connecting this nodes to creat a base i could continue working on with e.g. Heteroptera or Sandbox.
After trying out Rooster I got showen a thinning algorithem (
image - Zhang-Suen thinning algorithm C# - Stack Overflow ) which produces like a medial axis trough the black part of the picture but in a realy messy way:
after trying countless ideas to redu…
Yes it is possible. You can do that
Make a small script that takes a polyline and extract arc or line.
I did that, and if tolerance for converting polyline to arcs and lines is more than 2 or 3 it works :
@visose did show a way to do it, but it is a bit too simple.
See Arc Welder
Thank you, Laurent, this was quite helpful!