I am working on the translation of a raster image to a colored grid surface of squares based on the colors of the image. I have attached two files (Source and Grid) which explain the idea..
Till now I found three ways of analysing an image:
- ImageSampler:
This tutorial was very helpful:
http://vimeo.com/groups/grasshopper/videos/10377020The thing I do not understand is the amount of variables it can produce?
I would like to control this because I need to control the amount of colors used on the grid.
- With the two scripts:
http://www.grasshopper3d.com/forum/topics/get-color-from-bitmapBy using these I can create a list of RGB data which corresponds to rows of pixels.
By knowing all this I am still not capable of analyzing a picture and use the RGB codes in a list to fill the squares in the grid with a specific amount of colors.
Hope I am clear and any help is much appreciated!
Dennis
Tags:
- Attachments:
-