]> Creatis software - creaCLI.git/blobdiff - bbtk_Slicer_PKG/src/bbSlicerResampleImageBRAINS.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerResampleImageBRAINS.h
diff --git a/bbtk_Slicer_PKG/src/bbSlicerResampleImageBRAINS.h b/bbtk_Slicer_PKG/src/bbSlicerResampleImageBRAINS.h
new file mode 100644 (file)
index 0000000..536d0a8
--- /dev/null
@@ -0,0 +1,78 @@
+#ifndef __bbSlicerResampleImageBRAINS_h_INCLUDED__
+#define __bbSlicerResampleImageBRAINS_h_INCLUDED__
+
+#include "bbSlicer_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+
+#include <vector>
+#include <cstdlib>
+#include <dlfcn.h>
+#include <sstream>
+#include <fstream>
+#include <iostream>
+
+#include <ModuleDescriptionUtilities.h>
+#include <ModuleDescriptionParser.h>
+#include <ModuleParameterGroup.h>
+#include <ModuleDescription.h>
+#include <ModuleParameter.h>
+
+#include "CreationTool.h"
+
+namespace bbSlicer {
+
+    class bbSlicer_EXPORT ResampleImageBRAINS
+    :
+    public bbtk::AtomicBlackBox {
+        BBTK_BLACK_BOX_INTERFACE ( ResampleImageBRAINS , bbtk::AtomicBlackBox ) ;
+
+        // GENERATED ARGS        
+        
+BBTK_DECLARE_INPUT ( inputVolume , std::string );
+BBTK_DECLARE_INPUT ( referenceVolume , std::string );
+BBTK_DECLARE_INPUT ( outputVolume , std::string );
+BBTK_DECLARE_INPUT ( pixelType , std::string );
+BBTK_DECLARE_INPUT ( deformationVolume , std::string );
+BBTK_DECLARE_INPUT ( warpTransform , std::string );
+BBTK_DECLARE_INPUT ( interpolationMode , std::string );
+BBTK_DECLARE_INPUT ( inverseTransform , bool );
+BBTK_DECLARE_INPUT ( defaultValue , float );
+BBTK_DECLARE_INPUT ( gridSpacing , std::vector<int> );
+BBTK_DECLARE_INPUT ( numberOfThreads , int );
+
+        // EO GENERATED ARGS
+
+        BBTK_PROCESS ( Process ) ;
+        void Process ( ) ;
+    private:
+        void execute ( std::string lib , int _argc , char * _argv[] ) ;
+    } ;
+
+    BBTK_BEGIN_DESCRIBE_BLACK_BOX ( ResampleImageBRAINS , bbtk::AtomicBlackBox ) ;
+    BBTK_NAME ( "ResampleImageBRAINS" ) ;
+    BBTK_AUTHOR ( "This tool was developed by Vincent Magnotta, Greg Harris, and Hans Johnson." ) ;
+    BBTK_DESCRIPTION ( "This program resamples an image image using a deformation field or a transform BSpline, Affine, Rigid, etc.." ) ;
+    BBTK_CATEGORY ( "Registration" ) ;
+
+    // GENERATED DESCRPTION
+    
+BBTK_INPUT(ResampleImageBRAINS , inputVolume , "inputVolume" , std::string, "");
+BBTK_INPUT(ResampleImageBRAINS , referenceVolume , "referenceVolume" , std::string, "");
+BBTK_INPUT(ResampleImageBRAINS , outputVolume , "outputVolume" , std::string, "");
+BBTK_INPUT(ResampleImageBRAINS , pixelType , "pixelType" , std::string, "");
+BBTK_INPUT(ResampleImageBRAINS , deformationVolume , "deformationVolume" , std::string, "");
+BBTK_INPUT(ResampleImageBRAINS , warpTransform , "warpTransform" , std::string, "");
+BBTK_INPUT(ResampleImageBRAINS , interpolationMode , "interpolationMode" , std::string, "");
+BBTK_INPUT(ResampleImageBRAINS , inverseTransform , "inverseTransform" , bool, "");
+BBTK_INPUT(ResampleImageBRAINS , defaultValue , "defaultValue" , float, "");
+BBTK_INPUT(ResampleImageBRAINS , gridSpacing , "gridSpacing" , std::vector<int>, "");
+BBTK_INPUT(ResampleImageBRAINS , numberOfThreads , "numberOfThreads" , int, "");
+
+    // EO GENERATED DESCRIPTION
+
+    BBTK_END_DESCRIBE_BLACK_BOX ( ResampleImageBRAINS ) ;
+}
+
+#endif // __bbSlicerResampleImageBRAINS_h_INCLUDED__
+
+