]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.h
2178 creaVtk Bug New High Error in creaVtkFromVtk4DToItk4 box output.
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkFromVtk4DToItk4D.h
index 7ff303cec6c097d7550a63df0beadbeb6687d7c6..772a837575e9ff0572272525492b8eb0faff09ac 100644 (file)
@@ -6,9 +6,11 @@
 #include "bbcreaVtk_EXPORT.h"
 #include "bbtkAtomicBlackBox.h"
 #include "iostream"
+
 #include "vtkImageData.h"
 #include <vector>
-#include "itkImage.h"
+//#include "itkImage.h"
+#include "creaVtkFromVtk4DToItk4D.h"
 
 namespace bbcreaVtk
 {
@@ -18,22 +20,23 @@ class bbcreaVtk_EXPORT FromVtk4DToItk4D
    public bbtk::AtomicBlackBox
 {
   BBTK_BLACK_BOX_INTERFACE(FromVtk4DToItk4D,bbtk::AtomicBlackBox);
-
   BBTK_DECLARE_INPUT(In,std::vector<vtkImageData*> );
-       //Bug. Image type doesn't work.
-  //BBTK_DECLARE_OUTPUT(Out,std::vector<itk::Image< unsigned char > >);
+  BBTK_DECLARE_OUTPUT(Out, Image4DType::Pointer );
   BBTK_PROCESS(Process);
   void Process();
 
 };
 
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(FromVtk4DToItk4D,bbtk::AtomicBlackBox);
-BBTK_NAME("FromVtk4DToItk4D");
-BBTK_AUTHOR("Carlos Torres");
-BBTK_DESCRIPTION("carlos.torres@creatis.insa-lyon.fr -");
-BBTK_CATEGORY("empty");
-BBTK_INPUT(FromVtk4DToItk4D,In,"Vtk image 4D",std::vector<vtkImageData*>,"");
-//BBTK_OUTPUT(FromVtk4DToItk4D,Out,"Itk image 4D",std::vector<itk::Image< unsigned char > >,"");
+ BBTK_NAME("FromVtk4DToItk4D");
+ BBTK_AUTHOR("Carlos Torres");
+ BBTK_DESCRIPTION("carlos.torres@creatis.insa-lyon.fr -");
+ BBTK_CATEGORY("empty");
+
+ BBTK_INPUT(FromVtk4DToItk4D,In,"Vtk image 4D",std::vector<vtkImageData*>,"");
+
+ BBTK_OUTPUT(FromVtk4DToItk4D,Out,"Itk image 4D", Image4DType::Pointer ,"");
+
 BBTK_END_DESCRIBE_BLACK_BOX(FromVtk4DToItk4D);
 
 }