Skip to content

COMP: Specify type in LiThresholdCalculator min call#597

Merged
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
thewtex:li-min
Mar 18, 2019
Merged

COMP: Specify type in LiThresholdCalculator min call#597
dzenanz merged 1 commit intoInsightSoftwareConsortium:masterfrom
thewtex:li-min

Conversation

@thewtex
Copy link
Member

@thewtex thewtex commented Mar 17, 2019

This is a follow-up to:

#135

To address:

In file included from /home/kitware/mattm/ITK/Modules/Filtering/Thresholding/include/itkLiThresholdCalculator.h:87:0,
from Wrapping/Typedefs/itkLiThresholdCalculatorSwigInterface.h:19,
from Wrapping/Modules/ITKThresholding/itkLiThresholdCalculatorPython.cpp:3371:
/home/kitware/mattm/ITK/Modules/Filtering/Thresholding/include/itkLiThresholdCalculator.hxx: In instantiation of ‘void itk::LiThresholdCalculator<THistogram, TOutput>::GenerateData() [with THistogram = itk::Statistics::Histogram; TOutput = float]’:
Wrapping/Modules/ITKThresholding/itkLiThresholdCalculatorPython.cpp:8112:1: required from here
/home/kitware/mattm/ITK/Modules/Filtering/Thresholding/include/itkLiThresholdCalculator.hxx:65:34: error: no matching function for call to ‘min(const MeasurementType&, double)’
const double bin_min = std::min(histogram->GetBinMin(0,0), 0.0);

To address:

  In file included from /home/kitware/mattm/ITK/Modules/Filtering/Thresholding/include/itkLiThresholdCalculator.h:87:0,
                 from Wrapping/Typedefs/itkLiThresholdCalculatorSwigInterface.h:19,
                 from Wrapping/Modules/ITKThresholding/itkLiThresholdCalculatorPython.cpp:3371:
/home/kitware/mattm/ITK/Modules/Filtering/Thresholding/include/itkLiThresholdCalculator.hxx: In instantiation of ‘void itk::LiThresholdCalculator<THistogram, TOutput>::GenerateData() [with THistogram = itk::Statistics::Histogram<float>; TOutput = float]’:
Wrapping/Modules/ITKThresholding/itkLiThresholdCalculatorPython.cpp:8112:1:   required from here
/home/kitware/mattm/ITK/Modules/Filtering/Thresholding/include/itkLiThresholdCalculator.hxx:65:34: error: no matching function for call to ‘min(const MeasurementType&, double)’
   const double bin_min = std::min(histogram->GetBinMin(0,0), 0.0);
@dzenanz dzenanz merged commit dcdeed9 into InsightSoftwareConsortium:master Mar 18, 2019
@thewtex thewtex deleted the li-min branch March 18, 2019 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants