algorithmic modeling for Rhino
I was trying to figure out how to trace an image directly by grasshopper.
It is really time consuming if I manually trace a complicated image using the bitmap method.
If possible can anyone post the grasshopper file for tracing image.It doesn't need to be very accurate.
There had been a discussion on it before but it did not give me the output as I saw.There might be some error in the file I created.
Could anyone post the working grasshopper file for it?
Tags:
Hi Shubham,
Your image looks as a perfect candidate for potrace ...(raster to vector soft)
Sorry, I'm of no help at all for grasshopper ...
Cheers
I think you could use Daniel González Abalde tool :
http://www.grasshopper3d.com/photo/rasterize-images-in-black-and-wh...
with a res of 0.5:
What's potrace? Good results indeed.
I see: http://potrace.sourceforge.net/
They are using a sort of look-a-head strategy with smarts, not smoothing:
Thank you for the reply.
I wanted to ask how to get potrace working for rhino.
I downloaded the 64-bit zip file from sourcefourge and extracted it in rhino plugins but it says unknown command .
Please help.
Thank you in advance.
Potrace is not a plugin for Rhino it is an executable with command lines. So here are the steps I used :
Nik method is more simple you have to specify files (potrace.exe and yourfile.bmp) but you need GHPython (http://www.food4rhino.com/project/ghpython)
Hope it helps
There's a way to have grand control over the result using Photoshop. Change to grayscale, then up the resolution way up and Gaussian blur to very effectively smooth any pixelation. Then use the Wand (not contiguous) to select the black and make a work path from selection in the Paths palette and the secret is to use the Alt key to bring up the Tolerance setting in order to set it small.
Original after using the Levels command white eyedropper and clicking on gray to make the watermark crap white too:
Upping the resolution by 3X:
Gaussian blurring a whopping six pixels:
Using Curves to tweak the result, beefing up details, then use Threshold to see result. Now create a Work Path from the selection, crucially using the Alt key to also bring up the Tolerance setting for the work path, using 0.5 pixels to make it not be crude:
Now you can export the path to Illustrator that Rhino can open:
The point of all this is that it gives you full control over the result. In haste I've lost some detail, but I'm also able to create smooth tracings even from pixelated artwork. You can see I'm already pulling a lot more detail than Laurent's example:
Even though the image is pixelated, the nature of these type of bezier curve artwork means the information of the original is still there as long as you average the pixel outline using blur.
Being a bit more careful with my initial Curves tweaking, along with Threshold use, here are the overly complex 0.5 pixel Tolerance Photoshop selection work paths, and a much simpler one with 1.0 Tolerance setting, turned into shaded surfaces using PlanarSrf in Rhino:
Enclosed is the final 1.0 pixel tolerance Illustrator file export from Photoshop, which is 1/10 the size of the 0.5 tolerance one.
My brother was an Adobe Press book writer and Photoshop trainer, and I invented this method in the late 1990s but it's no longer a trade secret.
The blurring then threshold back to black adds poor man's edge awareness.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by