]> Creatis software - FrontAlgorithms.git/blobdiff - plugins/ImageAlgorithms/RegionGrow.cxx
...
[FrontAlgorithms.git] / plugins / ImageAlgorithms / RegionGrow.cxx
index f620b719d8b4041787a1f09284fe71803b8cc8bf..801c7f002a42045084355d4ffeccfb7acf274f89 100644 (file)
@@ -37,14 +37,15 @@ void fpaPluginsImageAlgorithms::RegionGrow::
 _GD0( _TImage* image )
 {
   auto rtype = this->m_Parameters.GetSelectedChoice( "ResultType" );
-  if( rtype == "char" ) this->_GD1< _TImage, char >( image );
-  if( rtype == "uchar" ) this->_GD1< _TImage, unsigned char >( image );
-  if( rtype == "short" ) this->_GD1< _TImage, short >( image );
-  if( rtype == "ushort" ) this->_GD1< _TImage, unsigned short >( image );
-  if( rtype == "int" ) this->_GD1< _TImage, int >( image );
-  if( rtype == "uint" ) this->_GD1< _TImage, unsigned int >( image );
-  if( rtype == "long" ) this->_GD1< _TImage, long >( image );
-  if( rtype == "ulong" ) this->_GD1< _TImage, unsigned long >( image );
+  if( rtype == "char" )        this->_GD1< _TImage, char >( image );
+  else if( rtype == "uchar" )  this->_GD1< _TImage, unsigned char >( image );
+  else if( rtype == "short" )  this->_GD1< _TImage, short >( image );
+  else if( rtype == "ushort" ) this->_GD1< _TImage, unsigned short >( image );
+  else if( rtype == "int" )    this->_GD1< _TImage, int >( image );
+  else if( rtype == "uint" )   this->_GD1< _TImage, unsigned int >( image );
+  else if( rtype == "long" )   this->_GD1< _TImage, long >( image );
+  else if( rtype == "ulong" )  this->_GD1< _TImage, unsigned long >( image );
+  else                         this->_GD1< _TImage, char >( image );
 }
 
 // -------------------------------------------------------------------------