]> Creatis software - cpPlugins.git/blobdiff - plugins/cpPluginsImageFilters/BinaryThresholdImageFilter.cxx
Now it compiles again on Windows.
[cpPlugins.git] / plugins / cpPluginsImageFilters / BinaryThresholdImageFilter.cxx
index 6545d56750072111aa70e519d1f482d2d6f039bc..37342a58184b947d71682f05aeaecefe1500f6bb 100644 (file)
@@ -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 >( );