Hello Everyone,
I had a small doubt today in converting a raster image in to vector lines based on the detection of pixels. There is a possible way to convert it using Illustrator and Raster design, but just a thought if it could be done using grasshopper.
Many thanks in advance.
Daniel González Abalde
Peacock has a Raster component to convert black and white images to closed curves.
http://www.food4rhino.com/project/peacock?etx
To do since color is a little more complicated.
My logic was: Making a mesh from the image and the resolution you want. For each point in the mesh, selecting the corresponding pixel, and filter following some method (brightness, hue...). Those who have been discarded corresponds to the vertices you have to remove of the mesh and then pick the naked edges of the mesh, and you soften the curve.
This method is very slow and depends on the resolution of the image, but it works.
Oct 29, 2015