[Insight-users] Question About ThresholdCalculator
    Jianxu Chen 
    jchen16 at nd.edu
       
    Fri Mar  1 00:09:52 EST 2013
    
    
  
Hello,
Could anyone help me on using "TriangleThresholdCalculator"? 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?
The threshold-calculator is defined as following:
typedef itk::TriangleThresholdCalculator<
ScalarImageToHistogramGeneratorType::HistogramType>
TriangleThresholdCalculatorType;
 TriangleThresholdCalculatorType::Pointer calculator =
TriangleThresholdCalculatorType::New();
... ...
double  tri_threshold= calculator->GetOutput();  // There is an error here.
How to convert the type here?
Thanks in advance.
-- 
Jianxu Chen
Department of Computer Science and Engineering
University of Notre Dame
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130301/a1c5b186/attachment.htm>
    
    
More information about the Insight-users
mailing list