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 >( );