]> Creatis software - creaCLI.git/blobdiff - bbtk_Slicer_PKG/src/bbSlicerMRIBiasFieldCorrection.cxx
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerMRIBiasFieldCorrection.cxx
index 946408f6d6f6154cf69f162afd48ea99501f36e8..61d0ffea2c9435f2b921399243f866aac050e61c 100644 (file)
@@ -11,16 +11,16 @@ namespace bbSlicer {
 
 int _argc =10;
 std::string lib = "/home/riveros/.slicer/Slicer4-bin/Slicer-build/lib/Slicer-4.0/cli-modules/libMRIBiasFieldCorrectionLib.so";
-char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--inputImage"  ) + Mthd::Aux::toString( bbGetInputInputImage( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--inputMask"  ) + Mthd::Aux::toString( bbGetInputInputMask( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--outputImage"  ) + Mthd::Aux::toString( bbGetInputOutputImage( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--algorithmType"  ) + Mthd::Aux::toString( bbGetInputAlgorithmType( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--shrinkFactor"  ) + Mthd::Aux::toString( bbGetInputShrinkFactor( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--maximumNumberOfIterations"  ) + Mthd::Aux::toString( bbGetInputMaximumNumberOfIterations( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--numberOfFittingLevels"  ) + Mthd::Aux::toString( bbGetInputNumberOfFittingLevels( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--wienerFilterNoise"  ) + Mthd::Aux::toString( bbGetInputWienerFilterNoise( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--fullWidthAtHalfMaximum"  ) + Mthd::Aux::toString( bbGetInputFullWidthAtHalfMaximum( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--convergenceThreshold"  ) + Mthd::Aux::toString( bbGetInputConvergenceThreshold( ) ) ) };
+char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--inputImage"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputInputImage( ) ) ) ,"@@@@@"," --inputImage ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--inputMask"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputInputMask( ) ) ) ,"@@@@@"," --inputMask ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--outputImage"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputOutputImage( ) ) ) ,"@@@@@"," --outputImage ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--algorithmType"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputAlgorithmType( ) ) ) ,"@@@@@"," --algorithmType ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--shrinkFactor"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputShrinkFactor( ) ) ) ,"@@@@@"," --shrinkFactor ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--maximumNumberOfIterations"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputMaximumNumberOfIterations( ) ) ) ,"@@@@@"," --maximumNumberOfIterations ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--numberOfFittingLevels"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputNumberOfFittingLevels( ) ) ) ,"@@@@@"," --numberOfFittingLevels ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--wienerFilterNoise"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputWienerFilterNoise( ) ) ) ,"@@@@@"," --wienerFilterNoise ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--fullWidthAtHalfMaximum"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputFullWidthAtHalfMaximum( ) ) ) ,"@@@@@"," --fullWidthAtHalfMaximum ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--convergenceThreshold"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputConvergenceThreshold( ) ) ) ,"@@@@@"," --convergenceThreshold ") ) };
 
         // EO GENERATED
         this->execute( lib, _argc, _argv );