]> Creatis software - creaCLI.git/blobdiff - bbtk_Slicer_PKG/src/bbSlicerFastRigidregistration.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerFastRigidregistration.h
diff --git a/bbtk_Slicer_PKG/src/bbSlicerFastRigidregistration.h b/bbtk_Slicer_PKG/src/bbSlicerFastRigidregistration.h
new file mode 100644 (file)
index 0000000..9628e70
--- /dev/null
@@ -0,0 +1,82 @@
+#ifndef __bbSlicerFastRigidregistration_h_INCLUDED__
+#define __bbSlicerFastRigidregistration_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 FastRigidregistration
+    :
+    public bbtk::AtomicBlackBox {
+        BBTK_BLACK_BOX_INTERFACE ( FastRigidregistration , bbtk::AtomicBlackBox ) ;
+
+        // GENERATED ARGS        
+        
+BBTK_DECLARE_INPUT ( FixedImageSmoothingFactor , int );
+BBTK_DECLARE_INPUT ( MovingImageSmoothingFactor , int );
+BBTK_DECLARE_INPUT ( TestingMode , bool );
+BBTK_DECLARE_INPUT ( HistogramBins , int );
+BBTK_DECLARE_INPUT ( SpatialSamples , int );
+BBTK_DECLARE_INPUT ( Iterations , std::vector<int> );
+BBTK_DECLARE_INPUT ( LearningRate , std::vector<double> );
+BBTK_DECLARE_INPUT ( TranslationScale , double );
+BBTK_DECLARE_INPUT ( InitialTransform , std::string );
+BBTK_DECLARE_INPUT ( FixedImageFileName , std::string );
+BBTK_DECLARE_INPUT ( MovingImageFileName , std::string );
+BBTK_DECLARE_INPUT ( OutputTransform , std::string );
+BBTK_DECLARE_INPUT ( ResampledImageFileName , 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 ( FastRigidregistration , bbtk::AtomicBlackBox ) ;
+    BBTK_NAME ( "FastRigidregistration" ) ;
+    BBTK_AUTHOR ( "Daniel Blezek" ) ;
+    BBTK_DESCRIPTION ( "Registers two images together using a rigid transform and mutual information.This module was originally distributed as 'Linear registration' but has been renamed to eliminate confusion with the 'Affine registration' module.This module is often used to align images of different subjects or images of the same subject from different modalities.This module can smooth images prior to registration to mitigate noise and improve convergence. Many of the registration parameters require a working knowledge of the algorithm although the default parameters are sufficient for many registration tasks." ) ;
+    BBTK_CATEGORY ( "Legacy.Registration" ) ;
+
+    // GENERATED DESCRPTION
+    
+BBTK_INPUT(FastRigidregistration , FixedImageSmoothingFactor , "FixedImageSmoothingFactor" , int, "");
+BBTK_INPUT(FastRigidregistration , MovingImageSmoothingFactor , "MovingImageSmoothingFactor" , int, "");
+BBTK_INPUT(FastRigidregistration , TestingMode , "TestingMode" , bool, "");
+BBTK_INPUT(FastRigidregistration , HistogramBins , "HistogramBins" , int, "");
+BBTK_INPUT(FastRigidregistration , SpatialSamples , "SpatialSamples" , int, "");
+BBTK_INPUT(FastRigidregistration , Iterations , "Iterations" , std::vector<int>, "");
+BBTK_INPUT(FastRigidregistration , LearningRate , "LearningRate" , std::vector<double>, "");
+BBTK_INPUT(FastRigidregistration , TranslationScale , "TranslationScale" , double, "");
+BBTK_INPUT(FastRigidregistration , InitialTransform , "InitialTransform" , std::string, "");
+BBTK_INPUT(FastRigidregistration , FixedImageFileName , "FixedImageFileName" , std::string, "");
+BBTK_INPUT(FastRigidregistration , MovingImageFileName , "MovingImageFileName" , std::string, "");
+BBTK_INPUT(FastRigidregistration , OutputTransform , "OutputTransform" , std::string, "");
+BBTK_INPUT(FastRigidregistration , ResampledImageFileName , "ResampledImageFileName" , std::string, "");
+
+    // EO GENERATED DESCRIPTION
+
+    BBTK_END_DESCRIBE_BLACK_BOX ( FastRigidregistration ) ;
+}
+
+#endif // __bbSlicerFastRigidregistration_h_INCLUDED__
+
+