Hi TomTom,<br><br><br>Option A:<br><br>Would you consider the option of using the Otsu Threshold Calculator ?<br><a href="http://www.itk.org/Doxygen/html/classitk_1_1OtsuThresholdCalculator.html">http://www.itk.org/Doxygen/html/classitk_1_1OtsuThresholdCalculator.html</a><br>
<br>This will not necessarily give you the minimum between the two classes,<br>but, it will give you the point that maximize the variance.<br><br><br>Option B:<br><br>You can treat your histogram as a 1-D image, and use the filter:<br>
<a href="http://www.itk.org/Doxygen/html/classitk_1_1MinimumMaximumImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1MinimumMaximumImageFilter.html</a><br><br>that will return the location of the minima and maxima.<br>
<br>To convert from Histogram to Image you can use:<br><a href="http://www.itk.org/Doxygen/html/classitk_1_1HistogramToImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1HistogramToImageFilter.html</a><br><br>and if Smoothing of the histogram is required,<br>
you can also use any of the ITK smoothing<br>filters, in that 1-D image to which you just<br>converted your Histogram.<br><br><br>       Luis<br><br><br>-----------------------------------------------<br><div class="gmail_quote">
On Thu, May 24, 2012 at 9:00 AM, tomtom <span dir="ltr">&lt;<a href="mailto:ms.rit@web.de" target="_blank">ms.rit@web.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello.<br>
<br>
Assuming I have a histogram of distances, so basically values between 0 and<br>
1.<br>
In my case, I always have two &quot;obvious&quot; maximums.<br>
Whats the way to get the minimum between those two maximums? (The best would<br>
be to smooth the histogram in prior.)<br>
<br>
Any suggestions?<br>
<br>
The only thing that comes to my mind is to interpolate a polynomial, and to<br>
determine the min, max analytically.<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>