]> Creatis software - creaCLI.git/blobdiff - bbtk_Slicer_PKG/src/bbSlicerResampleScalarVolume.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerResampleScalarVolume.h
diff --git a/bbtk_Slicer_PKG/src/bbSlicerResampleScalarVolume.h b/bbtk_Slicer_PKG/src/bbSlicerResampleScalarVolume.h
new file mode 100644 (file)
index 0000000..a7ba623
--- /dev/null
@@ -0,0 +1,64 @@
+#ifndef __bbSlicerResampleScalarVolume_h_INCLUDED__
+#define __bbSlicerResampleScalarVolume_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 ResampleScalarVolume
+    :
+    public bbtk::AtomicBlackBox {
+        BBTK_BLACK_BOX_INTERFACE ( ResampleScalarVolume , bbtk::AtomicBlackBox ) ;
+
+        // GENERATED ARGS        
+        
+BBTK_DECLARE_INPUT ( outputPixelSpacing , std::vector<float> );
+BBTK_DECLARE_INPUT ( interpolationType , std::string );
+BBTK_DECLARE_INPUT ( InputVolume , std::string );
+BBTK_DECLARE_INPUT ( OutputVolume , 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 ( ResampleScalarVolume , bbtk::AtomicBlackBox ) ;
+    BBTK_NAME ( "ResampleScalarVolume" ) ;
+    BBTK_AUTHOR ( "Bill Lorensen" ) ;
+    BBTK_DESCRIPTION ( "Resampling an image is an important task in image analysis. It is especially important in the frame of image registration. This module implements image resampling through the use of itk Transforms. This module uses an Identity Transform. 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. Several interpolators are available: linear, nearest neighbor, bspline and five flavors of sinc. The sinc interpolators, although more precise, are much slower than the linear and nearest neighbor interpolator. To resample label volumnes, nearest neighbor interpolation should be used exclusively." ) ;
+    BBTK_CATEGORY ( "Legacy.Filtering" ) ;
+
+    // GENERATED DESCRPTION
+    
+BBTK_INPUT(ResampleScalarVolume , outputPixelSpacing , "outputPixelSpacing" , std::vector<float>, "");
+BBTK_INPUT(ResampleScalarVolume , interpolationType , "interpolationType" , std::string, "");
+BBTK_INPUT(ResampleScalarVolume , InputVolume , "InputVolume" , std::string, "");
+BBTK_INPUT(ResampleScalarVolume , OutputVolume , "OutputVolume" , std::string, "");
+
+    // EO GENERATED DESCRIPTION
+
+    BBTK_END_DESCRIBE_BLACK_BOX ( ResampleScalarVolume ) ;
+}
+
+#endif // __bbSlicerResampleScalarVolume_h_INCLUDED__
+
+