X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_Slicer_PKG%2Fsrc%2FbbSlicerOtsuThresholdSegmentation.cxx;fp=bbtk_Slicer_PKG%2Fsrc%2FbbSlicerOtsuThresholdSegmentation.cxx;h=7be627b6175dd133a06787d0750846a9c2e659f1;hb=e7b4e2c9254e9e431f74acc92e3f0d40fc5e7ef6;hp=7b0ad99543b1db377b161b3c7b33ba3cbddaafd5;hpb=cd590ce5fff20d69c7060340235a35e9c2a9ef86;p=creaCLI.git diff --git a/bbtk_Slicer_PKG/src/bbSlicerOtsuThresholdSegmentation.cxx b/bbtk_Slicer_PKG/src/bbSlicerOtsuThresholdSegmentation.cxx index 7b0ad99..7be627b 100644 --- a/bbtk_Slicer_PKG/src/bbSlicerOtsuThresholdSegmentation.cxx +++ b/bbtk_Slicer_PKG/src/bbSlicerOtsuThresholdSegmentation.cxx @@ -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 );