+ {
+ auto choice = this->m_Parameters.GetSelectedChoice( "OutputResolution" );
+ if( choice == "char" )
+ return( this->_GD1< _TImage, char >( image ) );
+ else if( choice == "short" )
+ return( this->_GD1< _TImage, short >( image ) );
+ else if( choice == "int" )
+ return( this->_GD1< _TImage, int >( image ) );
+ else if( choice == "long" )
+ return( this->_GD1< _TImage, long >( image ) );
+ else if( choice == "float" )
+ return( this->_GD1< _TImage, float >( image ) );
+ else if( choice == "double" )
+ return( this->_GD1< _TImage, double >( image ) );
+ else if( choice == "unsigned char" )
+ return( this->_GD1< _TImage, unsigned char >( image ) );
+ else if( choice == "unsigned short" )
+ return( this->_GD1< _TImage, unsigned short >( image ) );
+ else if( choice == "unsigned int" )
+ return( this->_GD1< _TImage, unsigned int >( image ) );
+ else if( choice == "unsigned long" )
+ return( this->_GD1< _TImage, unsigned long >( image ) );
+ else return( "BinaryThresholdImageFilter: no valid output type." );
+ }