pixels.push_back( "long" );
pixels.push_back( "ulong" );
#endif // cpPlugins_CONFIG_INTEGER_TYPES_long
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_float
+#ifdef cpPlugins_CONFIG_REAL_TYPES_float
pixels.push_back( "float" );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_float
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_double
+#endif // cpPlugins_CONFIG_REAL_TYPES_float
+#ifdef cpPlugins_CONFIG_REAL_TYPES_double
pixels.push_back( "double" );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_double
+#endif // cpPlugins_CONFIG_REAL_TYPES_double
this->m_Parameters.ConfigureAsChoices( "PixelType", pixels );
std::vector< std::string > dims;
bool success = false;
auto pixel = this->m_Parameters.GetSelectedChoice( "PixelType" );
#ifdef cpPlugins_CONFIG_INTEGER_TYPES_char
- if( pixel == "char" ) success = this->_GD0< char >( );
- if( pixel == "uchar" ) success = this->_GD0< unsigned char >( );
+ if( pixel == "char" ) success = this->_GD0< char >( );
+ if( pixel == "uchar" ) success = this->_GD0< unsigned char >( );
#endif // cpPlugins_CONFIG_INTEGER_TYPES_char
#ifdef cpPlugins_CONFIG_INTEGER_TYPES_short
- if( pixel == "short" ) success = this->_GD0< short >( );
+ if( pixel == "short" ) success = this->_GD0< short >( );
if( pixel == "ushort" ) success = this->_GD0< unsigned short >( );
#endif // cpPlugins_CONFIG_INTEGER_TYPES_short
#ifdef cpPlugins_CONFIG_INTEGER_TYPES_int
- if( pixel == "int" ) success = this->_GD0< int >( );
- if( pixel == "uint" ) success = this->_GD0< unsigned int >( );
+ if( pixel == "int" ) success = this->_GD0< int >( );
+ if( pixel == "uint" ) success = this->_GD0< unsigned int >( );
#endif // cpPlugins_CONFIG_INTEGER_TYPES_int
#ifdef cpPlugins_CONFIG_INTEGER_TYPES_long
- if( pixel == "long" ) success = this->_GD0< long >( );
- if( pixel == "ulong" ) success = this->_GD0< unsigned long >( );
+ if( pixel == "long" ) success = this->_GD0< long >( );
+ if( pixel == "ulong" ) success = this->_GD0< unsigned long >( );
#endif // cpPlugins_CONFIG_INTEGER_TYPES_long
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_float
- if( pixel == "float" ) success = this->_GD0< float >( );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_float
-#ifdef cpPlugins_CONFIG_INTEGER_TYPES_double
+#ifdef cpPlugins_CONFIG_REAL_TYPES_float
+ if( pixel == "float" ) success = this->_GD0< float >( );
+#endif // cpPlugins_CONFIG_REAL_TYPES_float
+#ifdef cpPlugins_CONFIG_REAL_TYPES_double
if( pixel == "double" ) success = this->_GD0< double >( );
-#endif // cpPlugins_CONFIG_INTEGER_TYPES_double
+#endif // cpPlugins_CONFIG_REAL_TYPES_double
if( !success )
this->_Error( "Invalid pixel type." );
}