Hello,<div><br></div><div>Could anyone help me on using &quot;TriangleThresholdCalculator&quot;? My question is how can I convert the output of TriangleThresholdCalculator into a float variable so that it can be used as a threshold of ConnectedThresholdImageFilter?</div>
<div><br></div><div>The threshold-calculator is defined as following:</div><div>







<p class="p1"><span class="s1">typedef</span> itk::TriangleThresholdCalculator&lt; ScalarImageToHistogramGeneratorType::HistogramType&gt; TriangleThresholdCalculatorType;</p>
<p class="p1"><span class="Apple-tab-span">        </span> TriangleThresholdCalculatorType::Pointer calculator = TriangleThresholdCalculatorType::New();</p><p class="p1">... ...</p><p class="p1">







</p><p class="p1">double  tri_threshold= calculator-&gt;GetOutput();  // There is an error here. How to convert the type here?</p><p></p></div><div><div>Thanks in advance.</div>-- <br>Jianxu Chen<div>Department of Computer Science and Engineering</div>
<div>University of Notre Dame</div><div><br></div>
</div>