]> Creatis software - creaCLI.git/blobdiff - bbtk_Slicer_PKG/src/bbSlicerExtractSkeleton.cxx
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerExtractSkeleton.cxx
index 5afd4d6d8cb0c6c4bb3648afb83981b2d6b211a5..ca154652c66b114241e9056ae6ab93f1dd2fd8c9 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/libExtractSkeletonLib.so";
-char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::toString( bbGetInputInputImageFileName( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( bbGetInputOutputImageFileName( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--type"  ) + Mthd::Aux::toString( bbGetInputSkeletonType( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--dontPrune"  ) + Mthd::Aux::toString( bbGetInputDontPruneBranches( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--numPoints"  ) + Mthd::Aux::toString( bbGetInputNumberOfPoints( ) ) ),
-Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--pointsFile"  ) + Mthd::Aux::toString( bbGetInputOutputPointsFileName( ) ) ) };
+char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputInputImageFileName( ) ) ) ,"@@@@@","") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputOutputImageFileName( ) ) ) ,"@@@@@","") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--type"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputSkeletonType( ) ) ) ,"@@@@@"," --type ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--dontPrune"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputDontPruneBranches( ) ) ) ,"@@@@@"," --dontPrune ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--numPoints"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputNumberOfPoints( ) ) ) ,"@@@@@"," --numPoints ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--pointsFile"  ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputOutputPointsFileName( ) ) ) ,"@@@@@"," --pointsFile ") ) };
 
         // EO GENERATED
         this->execute( lib, _argc, _argv );