title: How can I find many local maxima in a noisy image?
body: <p>How do you go about figuring our multiple max in a 2D image where the max aren't necessarily all the same height? I have found that the <code>imregionalmax()</code>, <code>imextendedmax()</code>, and <code>findpeaks()</code> functions aren't necessarily that helpful because they give many local max that are really just maxes within the background noise. I tried</p>
  
  <pre><code>bw=array &gt; imdilate(array,[1 1 1; 1 0 1; 1 1 1]);
  </code></pre>
  
  <p>but that also is kind of limited for the same reasons (same thing with expanding the matrix that it uses).</p>