]> Creatis software - creaCLI.git/blobdiff - bbtk_Slicer_PKG/src/bbSlicerRobustStatisticsSegmentation.cxx
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerRobustStatisticsSegmentation.cxx
index 9c4da331561e369dfaefcc0c99ea55aea53a8f75..8d0ea03e5d66a173c0b02d2eb2a08e69af7ffc05 100644 (file)
@@ -11,14 +11,14 @@ namespace bbSlicer {
 
 int _argc =8;
 std::string lib = "/home/riveros/.slicer/Slicer4-bin/Slicer-build/lib/Slicer-4.0/cli-modules/libRobustStatSegmenterLib.so";
-char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::toString( "-v"  ) + Mthd::Aux::toString( bbGetInputexpectedVolume( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--intensityHomogeneity"  ) + Mthd::Aux::toString( bbGetInputintensityHomogeneity( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "-c"  ) + Mthd::Aux::toString( bbGetInputcurvatureWeight( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--labelValue"  ) + Mthd::Aux::toString( bbGetInputlabelValue( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--maxRunningTime"  ) + Mthd::Aux::toString( bbGetInputmaxRunningTime( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( bbGetInputoriginalImageFileName( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( bbGetInputlabelImageFileName( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( bbGetInputsegmentedImageFileName( ) ) ) };
+char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::toString( "-v"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputexpectedVolume( ) ) ) ,"@@@@@"," -v ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--intensityHomogeneity"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputintensityHomogeneity( ) ) ) ,"@@@@@"," --intensityHomogeneity ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "-c"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputcurvatureWeight( ) ) ) ,"@@@@@"," -c ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--labelValue"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputlabelValue( ) ) ) ,"@@@@@"," --labelValue ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--maxRunningTime"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputmaxRunningTime( ) ) ) ,"@@@@@"," --maxRunningTime ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputoriginalImageFileName( ) ) ) ,"@@@@@","") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputlabelImageFileName( ) ) ) ,"@@@@@","") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputsegmentedImageFileName( ) ) ) ,"@@@@@","") ) };
 
         // EO GENERATED
         this->execute( lib, _argc, _argv );