title: Extract x,y coordinates of each pixel from an image in Python
body: <p>Let's say I have a color image that I've loaded into a numpy array of dimensions (200 x 300 x 3). In total, there are 60,000 pixels in the image. I'm trying to extract the width,height (x,y) coordinates of each pixel starting from the <strong>upper left top corner</strong> representing pixel 1 such that:</p>
  
  <pre><code>pixel#   x    y
  1        0    0
  2        1    0
  .
  .
  301      0    1
  302      1    1
  .
  .
  60,000   299 199   
  </code></pre>
  
  <p>I'm tempted to use a for loop to do this in a more manual-nature but are there libraries or more effective ways to get those coordinate values for each pixel as such?</p>