X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=plugins%2FcpPluginsImageFilters%2FBinaryThresholdImageFilter.cxx;h=37342a58184b947d71682f05aeaecefe1500f6bb;hb=8d7780dd6a0a8f010d705e957e1eae793b7948cc;hp=6545d56750072111aa70e519d1f482d2d6f039bc;hpb=f533290f40279617e54e19086dde7c0ba9b07f5b;p=cpPlugins.git diff --git a/plugins/cpPluginsImageFilters/BinaryThresholdImageFilter.cxx b/plugins/cpPluginsImageFilters/BinaryThresholdImageFilter.cxx index 6545d56..37342a5 100644 --- a/plugins/cpPluginsImageFilters/BinaryThresholdImageFilter.cxx +++ b/plugins/cpPluginsImageFilters/BinaryThresholdImageFilter.cxx @@ -101,13 +101,12 @@ _GD1( _TImage* image ) typedef itk::Image< _TBinaryPixel, _TImage::ImageDimension > _TBinaryImage; typedef itk::BinaryThresholdImageFilter< _TImage, _TBinaryImage > _F; typedef typename _TImage::PixelType _TP; - typedef typename _TBinaryImage::PixelType _UP; // Get parameters _TP lower_val = _TP( this->m_Parameters.GetReal( "LowerThresholdValue" ) ); _TP upper_val = _TP( this->m_Parameters.GetReal( "UpperThresholdValue" ) ); - _UP in_val = _UP( this->m_Parameters.GetReal( "InsideValue" ) ); - _UP out_val = _UP( this->m_Parameters.GetReal( "OutsideValue" ) ); + _TBinaryPixel in_val = _TBinaryPixel( this->m_Parameters.GetReal( "InsideValue" ) ); + _TBinaryPixel out_val = _TBinaryPixel( this->m_Parameters.GetReal( "OutsideValue" ) ); // Configure filter _F* filter = this->_CreateITK< _F >( );