Finding coordinates of each pixel using programming
===

What is the  way to find the coordinates of each pixel of the inner circle (or the outer one) in the following Image using programming(openCV or MATLAB)?    
imtool gives this information but it is  mouse driven.   


![enter image description here][1]


  [1]: http://i.stack.imgur.com/FKatF.png