title: Find 2D peak prominence using Python
body: <p>I found this scipy function <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.peak_prominences.html" rel="nofollow noreferrer">scipy.signal.peak_prominences</a> that finds the <a href="https://en.wikipedia.org/wiki/Topographic_prominence" rel="nofollow noreferrer">topographic prominence</a> of specified local maxima in a 1d sequence.</p>
  
  <p>But my application requires locating important peaks in a 2D array. I'm aware of some peak finding methods, such as doing a maximum filtering, which both scipy and skimage have their implementations. Also skimage's <code>h_maxima()</code> allows filtering local peaks that have a minimal relative height. But these only give the coordinates of the peaks, not their prominence .</p>
  
  <p>So how do I compute peak prominence on a 2d array?
  Any help would be appreciated.</p>