Commit 7a29c7e
committed
BUG: Fix threshold range based on input image type
itkBinaryThresholdFeatureGenerator.hxx:82:92: warning: overflow in conversion from ‘float’
to ‘itk::BinaryThresholdImageFilter<itk::Image<short int, 3>, itk::Image<float, 3> >::InputPixelType’
{aka ‘short int’} changes value from ‘3.40282347e+38f’ to ‘32767’ [-Woverflow]
this->m_BinaryThresholdFilter->SetUpperThreshold(itk::NumericTraits<OutputPixelType>::max());1 parent 44d790d commit 7a29c7e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments