generative modeling for Rhino

Hi all, I would like to Count and output the RGB Grid with a supplied image. So the output would be: numbers of Grids with value 0,0,255 (blue): 5 numbers of Grids with value 255,0,0 (red): 2 ...etc. But i don't seem to get it working....hope someone could look into my script and point out whats wrong. Thanks
© 2013 Created by Scott Davidson.
Powered by