Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Image analysis' topicStudent Support Forum > General > "Image analysis"

< Previous CommentHelp | Reply To Comment | Reply To Topic
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: ,

Subject (listing for 'Image analysis')
Author Date Posted
Image analysis Color samping 06/26/12 05:41am
Re: Image analysis Michael 07/01/12 11:56pm
< Previous CommentHelp | Reply To Comment | Reply To Topic