名画干扰随机泰森[转贴]
This was my old plan to work with images in Grasshopper. Certainly that was not the result I expected, but this could be counted as a starting point. After seeing beautiful circle packing compositions here, I decided to program Grasshopper, so that it’ll create a subdivision, based on an image data.http://www.designcoding.net/decoder/wp-content/uploads/2012/10/2012_10_17-monalisa1-def.jpgThis was the initial version, just subdividing a plane with voronoi points and visualizing it according to image’s color values of proper UV coordinates: There is no interpretation on the points, they are just “random”. (Although I’m looking at the “random” computer functions differently after I studied Mandelbrot here), we may say, yes they are random and they are out of my intention to associate them to the content of the image.The second challenge was to understand if Grasshopper can interpret not only the colors, but the actual context of the image. In this example, I tried to tell GH that, density of voronoi points should be based on the image contrast. Therefore, this definition checks the closest 5 points for each one, getting their average hue value, and sorting all points based on the contrast fof surrounding points. By selecting a % of these points and performing a voronoi stuff, this definition creates subdivisions, somehow related with the contrast within the image. The results are as expected but still interesting. At first, overall look of the image is identified, then eventually, more detailed areas are processed. Here are two experiments with famous paintings:http://www.designcoding.net/decoder/wp-content/uploads/2012/10/2012_10_17-monalisa11.gifhttp://www.designcoding.net/decoder/wp-content/uploads/2012/10/2012_10_17-monalisa21.gif
http://www.designcoding.net/decoder/wp-content/uploads/2012/10/2012_10_17-monalisa41.gifhttp://www.designcoding.net/decoder/wp-content/uploads/2012/10/2012_10_17-monalisa31.gif
This is the latest definition if you want to try;
http://www.designcoding.net/decoder/wp-content/uploads/2012/10/2012_10_17-monalisa2-def1.jpg
来源 http://www.designcoding.net/image-contrast/
好东西,顶起来,支持M大!! 这个算法很神奇啊! 无语了,太强了 真是难得给力的帖子啊。 强烈支持楼主ing…… 强烈支持楼主ing…… 那个preview 是那个运算器啊 在那里找出来的啊 M大 这个好列害呀。 太帅了 照着电池也不会啊,需要script么? 每天泡泡坛子,涨姿势,一直很好奇如何用GH处理彩图,今天学习了 求问:不知道那个ITEM是哪个电池 ?list' item的话输出端是I不是E。tree item的话 输入端又不符合, 还有相乘和相除的两个电池不知道值是多少。
页:
[1]