<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161224</link>
    <title>MATLAB Central Newsreader - Find Peaks in a Histogram</title>
    <description>Feed for thread: Find Peaks in a Histogram</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 24 Dec 2007 16:43:47 -0500</pubDate>
      <title>Find Peaks in a Histogram</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161224#407116</link>
      <author>anonymous</author>
      <description>Hey guys,&lt;br&gt;
&lt;br&gt;
I am trying to find the peaks of a Histogram's gray scale picture, using &lt;br&gt;
matlab. A peak is the value in Histogram that is bigger than it's closer 2 &lt;br&gt;
values left and right. Any ideas? &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sun, 23 Dec 2007 18:10:26 -0500</pubDate>
      <title>Re: Find Peaks in a Histogram</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161224#407118</link>
      <author>Roger Stafford</author>
      <description>"anonymous" &amp;lt;arisl@otenet.gr&amp;gt; wrote in message &amp;lt;fkm3et$dv8&lt;br&gt;
$1@mouse.otenet.gr&amp;gt;...&lt;br&gt;
&amp;gt; I am trying to find the peaks of a Histogram's gray scale picture, using &lt;br&gt;
&amp;gt; matlab. A peak is the value in Histogram that is bigger than it's closer 2 &lt;br&gt;
&amp;gt; values left and right. Any ideas? &lt;br&gt;
--------&lt;br&gt;
&amp;nbsp;&amp;nbsp;If h is a row vector of your (histogram) values, (with at least two values) do this:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;hl = [h(2:end),h(end-1)];&lt;br&gt;
&amp;nbsp;hr = [h(2),h(1:end-1)];&lt;br&gt;
&amp;nbsp;p =  (h &amp;gt; hl) &amp;&amp; (h &amp;gt; hr);&lt;br&gt;
&lt;br&gt;
Roger Stafford&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
