I have this image:

In this image I have 11 shapes (look like ellipses). I want to find the RGB of each pixel in each shape (including the white edge/boundary, as it’s a part of the shape).
If it helps, I have the center coordinate of each shape.
Thanks a lot!
here are the commands that makes your work easy…
As “Superbest” said fill the image with command
Now use command bwlabeln(), to find out the number of clusters or shapes.
L will give you number of shapes with same number to all the pixels belongs to same shape.
L containing labels for the connected components in BW. BW can have any dimension; L is the same size as BW. The elements of L are integer values greater than or equal to 0. The pixels labeled 0 are the background. The pixels labeled 1 make up one object, the pixels labeled 2 make up a second object, and so on.
Suppose you have two shapes or regions then to find the original color or gray scale values od as follows.
Have a happy coding…