| Author |
Comment/Response |
Michael
|
07/01/12 11:56pm
Import an image:
im = Import["http://www.wolfram.com/images/homepage2010/M8-spikey.png"]
Average a rectangular area:
In[41]:= Flatten[ImageTake[im, {70, 90}, {40, 80}] // ImageData,
1] // Mean
Out[41]= {0.882918, 0.646899, 0.612694}
Find the RGB values at a specific pixel:
In[42]:= ImageData[im][[85, 60]]
Out[42]= {0.839216, 0.121569, 0.}
Attached is a program I wrote for myself a while back to pick colors from a photo by clicking on the image.
Attachment: ColorPicker.nb, URL: , |
|