this->m_Parameters.ConfigureAsBool( "UseImageSpacing", true );
std::vector< std::string > choices;
-#ifdef cpPlugins_CONFIG_REAL_TYPES_float
choices.push_back( "float" );
-#endif // cpPlugins_CONFIG_REAL_TYPES_float
-#ifdef cpPlugins_CONFIG_REAL_TYPES_double
choices.push_back( "double" );
-#endif // cpPlugins_CONFIG_REAL_TYPES_double
this->m_Parameters.ConfigureAsChoices( "OutputResolution", choices );
}
{
std::string out_res =
this->m_Parameters.GetSelectedChoice( "OutputResolution" );
-#ifdef cpPlugins_CONFIG_REAL_TYPES_float
if( out_res == "float" ) this->_GD1< _TImage, float >( image );
-#endif // cpPlugins_CONFIG_REAL_TYPES_float
-#ifdef cpPlugins_CONFIG_REAL_TYPES_double
if( out_res == "double" ) this->_GD1< _TImage, double >( image );
-#endif // cpPlugins_CONFIG_REAL_TYPES_double
}
// -------------------------------------------------------------------------