]> Creatis software - creaCLI.git/blobdiff - bbtk_Slicer_PKG/src/bbSlicerOtsuThresholdSegmentation.cxx
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerOtsuThresholdSegmentation.cxx
index 7b0ad99543b1db377b161b3c7b33ba3cbddaafd5..7be627b6175dd133a06787d0750846a9c2e659f1 100644 (file)
@@ -11,12 +11,12 @@ namespace bbSlicer {
 
 int _argc =6;
 std::string lib = "/home/riveros/.slicer/Slicer4-bin/Slicer-build/lib/Slicer-4.0/cli-modules/libOtsuThresholdSegmentationLib.so";
-char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--brightObjects"  ) + Mthd::Aux::toString( bbGetInputbrightObjects( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--numberOfBins"  ) + Mthd::Aux::toString( bbGetInputnumberOfBins( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--faceConnected"  ) + Mthd::Aux::toString( bbGetInputfaceConnected( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--minimumObjectSize"  ) + Mthd::Aux::toString( bbGetInputminimumObjectSize( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( bbGetInputinputVolume( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( bbGetInputoutputVolume( ) ) ) };
+char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--brightObjects"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputbrightObjects( ) ) ) ,"@@@@@"," --brightObjects ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--numberOfBins"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputnumberOfBins( ) ) ) ,"@@@@@"," --numberOfBins ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--faceConnected"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputfaceConnected( ) ) ) ,"@@@@@"," --faceConnected ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--minimumObjectSize"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputminimumObjectSize( ) ) ) ,"@@@@@"," --minimumObjectSize ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputinputVolume( ) ) ) ,"@@@@@","") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputoutputVolume( ) ) ) ,"@@@@@","") ) };
 
         // EO GENERATED
         this->execute( lib, _argc, _argv );