]> Creatis software - creaCLI.git/blobdiff - bbtk_Slicer_PKG/src/bbSlicerResampleDTIVolume.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerResampleDTIVolume.h
diff --git a/bbtk_Slicer_PKG/src/bbSlicerResampleDTIVolume.h b/bbtk_Slicer_PKG/src/bbSlicerResampleDTIVolume.h
new file mode 100644 (file)
index 0000000..0c7f48f
--- /dev/null
@@ -0,0 +1,108 @@
+#ifndef __bbSlicerResampleDTIVolume_h_INCLUDED__
+#define __bbSlicerResampleDTIVolume_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 ResampleDTIVolume
+    :
+    public bbtk::AtomicBlackBox {
+        BBTK_BLACK_BOX_INTERFACE ( ResampleDTIVolume , bbtk::AtomicBlackBox ) ;
+
+        // GENERATED ARGS        
+        
+BBTK_DECLARE_INPUT ( inputVolume , std::string );
+BBTK_DECLARE_INPUT ( outputVolume , std::string );
+BBTK_DECLARE_INPUT ( referenceVolume , std::string );
+BBTK_DECLARE_INPUT ( transformationFile , std::string );
+BBTK_DECLARE_INPUT ( deffield , std::string );
+BBTK_DECLARE_INPUT ( typeOfField , std::string );
+BBTK_DECLARE_INPUT ( interpolationType , std::string );
+BBTK_DECLARE_INPUT ( correction , std::string );
+BBTK_DECLARE_INPUT ( ppd , std::string );
+BBTK_DECLARE_INPUT ( transformsOrder , std::string );
+BBTK_DECLARE_INPUT ( notbulk , bool );
+BBTK_DECLARE_INPUT ( space , bool );
+BBTK_DECLARE_INPUT ( rotationPoint , std::vector<float> );
+BBTK_DECLARE_INPUT ( centeredTransform , bool );
+BBTK_DECLARE_INPUT ( imageCenter , std::string );
+BBTK_DECLARE_INPUT ( inverseITKTransformation , bool );
+BBTK_DECLARE_INPUT ( outputImageSpacing , std::vector<double> );
+BBTK_DECLARE_INPUT ( outputImageSize , std::vector<double> );
+BBTK_DECLARE_INPUT ( outputImageOrigin , std::vector<float> );
+BBTK_DECLARE_INPUT ( directionMatrix , std::vector<double> );
+BBTK_DECLARE_INPUT ( numberOfThread , int );
+BBTK_DECLARE_INPUT ( defaultPixelValue , double );
+BBTK_DECLARE_INPUT ( windowFunction , std::string );
+BBTK_DECLARE_INPUT ( splineOrder , int );
+BBTK_DECLARE_INPUT ( transformMatrix , std::vector<double> );
+BBTK_DECLARE_INPUT ( transformType , std::string );
+
+        // EO GENERATED ARGS
+
+        BBTK_PROCESS ( Process ) ;
+        void Process ( ) ;
+    private:
+        void execute ( std::string lib , int _argc , char * _argv[] ) ;
+    } ;
+
+    BBTK_BEGIN_DESCRIBE_BLACK_BOX ( ResampleDTIVolume , bbtk::AtomicBlackBox ) ;
+    BBTK_NAME ( "ResampleDTIVolume" ) ;
+    BBTK_AUTHOR ( "Francois Budin" ) ;
+    BBTK_DESCRIPTION ( "Resampling an image is a very important task in image analysis. It is especially important in the frame of image registration. This module implements DT image resampling through the use of itk Transforms. The resampling is controlled by the Output Spacing. 'Resampling' is performed in space coordinates, not pixel/grid coordinates. It is quite important to ensure that image spacing is properly set on the images involved. The interpolator is required since the mapping from one space to the other will often require evaluation of the intensity of the image at non-grid positions." ) ;
+    BBTK_CATEGORY ( "Diffusion.Utilities" ) ;
+
+    // GENERATED DESCRPTION
+    
+BBTK_INPUT(ResampleDTIVolume , inputVolume , "inputVolume" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , outputVolume , "outputVolume" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , referenceVolume , "referenceVolume" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , transformationFile , "transformationFile" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , deffield , "deffield" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , typeOfField , "typeOfField" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , interpolationType , "interpolationType" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , correction , "correction" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , ppd , "ppd" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , transformsOrder , "transformsOrder" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , notbulk , "notbulk" , bool, "");
+BBTK_INPUT(ResampleDTIVolume , space , "space" , bool, "");
+BBTK_INPUT(ResampleDTIVolume , rotationPoint , "rotationPoint" , std::vector<float>, "");
+BBTK_INPUT(ResampleDTIVolume , centeredTransform , "centeredTransform" , bool, "");
+BBTK_INPUT(ResampleDTIVolume , imageCenter , "imageCenter" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , inverseITKTransformation , "inverseITKTransformation" , bool, "");
+BBTK_INPUT(ResampleDTIVolume , outputImageSpacing , "outputImageSpacing" , std::vector<double>, "");
+BBTK_INPUT(ResampleDTIVolume , outputImageSize , "outputImageSize" , std::vector<double>, "");
+BBTK_INPUT(ResampleDTIVolume , outputImageOrigin , "outputImageOrigin" , std::vector<float>, "");
+BBTK_INPUT(ResampleDTIVolume , directionMatrix , "directionMatrix" , std::vector<double>, "");
+BBTK_INPUT(ResampleDTIVolume , numberOfThread , "numberOfThread" , int, "");
+BBTK_INPUT(ResampleDTIVolume , defaultPixelValue , "defaultPixelValue" , double, "");
+BBTK_INPUT(ResampleDTIVolume , windowFunction , "windowFunction" , std::string, "");
+BBTK_INPUT(ResampleDTIVolume , splineOrder , "splineOrder" , int, "");
+BBTK_INPUT(ResampleDTIVolume , transformMatrix , "transformMatrix" , std::vector<double>, "");
+BBTK_INPUT(ResampleDTIVolume , transformType , "transformType" , std::string, "");
+
+    // EO GENERATED DESCRIPTION
+
+    BBTK_END_DESCRIBE_BLACK_BOX ( ResampleDTIVolume ) ;
+}
+
+#endif // __bbSlicerResampleDTIVolume_h_INCLUDED__
+
+