--- /dev/null
+#include "bbSlicerRobustMultiresolutionAffineRegistration.h"
+#include "bbSlicerPackage.h"
+
+namespace bbSlicer {
+ BBTK_ADD_BLACK_BOX_TO_PACKAGE ( Slicer, RobustMultiresolutionAffineRegistration )
+ BBTK_BLACK_BOX_IMPLEMENTATION ( RobustMultiresolutionAffineRegistration, bbtk::AtomicBlackBox );
+
+ void RobustMultiresolutionAffineRegistration::Process ( ) {
+
+ // GENERATED
+
+int _argc =11;
+std::string lib = "/home/riveros/.slicer/Slicer4-bin/Slicer-build/lib/Slicer-4.0/cli-modules/libRegisterImagesMultiResModule.so";
+char * _argv[ ] = { Mthd::Aux::toCharArrray( Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputfixedImage( ) ) ) ,"@@@@@","") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputmovingImage( ) ) ) ,"@@@@@","") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--resampledImage" ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputresampledImage( ) ) ) ,"@@@@@"," --resampledImage ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--saveTransform" ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputoutputTransform( ) ) ) ,"@@@@@"," --saveTransform ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--fixedImageMask" ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputfixedImageMask( ) ) ) ,"@@@@@"," --fixedImageMask ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--fixedImageROI" ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputfixedImageROI( ) ) ) ,"@@@@@"," --fixedImageROI ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--numIterations" ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputnumIterations( ) ) ) ,"@@@@@"," --numIterations ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--numLineIterations" ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputnumLineIterations( ) ) ) ,"@@@@@"," --numLineIterations ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--stepSize" ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputstepSize( ) ) ) ,"@@@@@"," --stepSize ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--stepTolerance" ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputstepTolerance( ) ) ) ,"@@@@@"," --stepTolerance ") ),
+Mthd::Aux::toCharArrray( Mthd::Aux::toString( "--metricTolerance" ) + Mthd::Aux::replace_str ( ( Mthd::Aux::toString( bbGetInputmetricTolerance( ) ) ) ,"@@@@@"," --metricTolerance ") ) };
+
+ // EO GENERATED
+ this->execute( lib, _argc, _argv );
+
+ }
+
+ void RobustMultiresolutionAffineRegistration::execute ( std::string lib, int _argc, char * _argv[] ) {
+ void* handle = dlopen( lib.c_str( ), RTLD_NOW | RTLD_GLOBAL );
+ if ( ! handle ) {
+ std::cerr << "CAN'T OPEN LIBRARY: " << dlerror( ) << '\n';
+ return;
+ }
+ typedef int (*method_t )( int argc, char * argv[] );
+ // RESET ERROR
+ dlerror( );
+ // PROTOTYPE
+ method_t myMethod = ( method_t ) dlsym( handle, "ModuleEntryPoint" );
+ const char *dlsym_error = dlerror( );
+ if ( dlsym_error ) {
+ std::cerr << "CAN'T LOAD SYMBOL 'ModuleEntryPoint':" << dlsym_error << '\n';
+ dlclose( handle );
+ return;
+ }
+ // METHOD CALL
+ myMethod( _argc, _argv );
+ // CLOSING LIB
+ dlclose( handle );
+ }
+
+ void RobustMultiresolutionAffineRegistration::bbUserSetDefaultValues ( ) {
+ }
+
+ void RobustMultiresolutionAffineRegistration::bbUserInitializeProcessing ( ) {
+ }
+
+ void RobustMultiresolutionAffineRegistration::bbUserFinalizeProcessing ( ) {
+ }
+}
+// EO namespace bbSlicer
+
+