title: How to convert a Numpy array (Rows x Cols) to an array of XYZ coordinates?
body: <p>I have an input array from a camera (greyscale image) that looks like:</p>
  
  <pre><code>[
  [0.5, 0.75, 0.1, 0.6], 
  [0.3, 0.75, 1.0, 0.9] 
  ]
  </code></pre>
  
  <p><em>actual size = 434x512</em></p>
  
  <p>I need an output which is a list of XYZ coordinates:</p>
  
  <p>i.e. [[x,y,z],[x,y,z],...]</p>
  
  <pre><code>[[0,0,0.5],[1,0,0.75],[2,0,0.1],[3,0,0.6],[0,1,0.3],[1,1,0.75],[2,1,1.0],[3,1,0.9]]
  </code></pre>
  
  <p>Are there any efficient ways to do this using Numpy?</p>