]> Creatis software - bbtk.git/blobdiff - packages/itk/src/bbitkAnyImageToTypedImage.h
=== MAJOR RELEASE ====
[bbtk.git] / packages / itk / src / bbitkAnyImageToTypedImage.h
index 768b57e617a7fad4ba6ef4ab3da50b94dc240e5a..61e404ffb25e6df8f65ee56ef33b8f8f55326c1d 100644 (file)
@@ -14,8 +14,9 @@ namespace bbitk
   template <class itkImageTypePointer>
   class AnyImageToTypedImage : public bbtk::AtomicBlackBox
   {  
-    BBTK_USER_BLACK_BOX_INTERFACE(AnyImageToTypedImage,
-                                 bbtk::AtomicBlackBox);
+    BBTK_TEMPLATE_BLACK_BOX_INTERFACE(AnyImageToTypedImage,
+                                     bbtk::AtomicBlackBox,
+                                     itkImageTypePointer);
     BBTK_DECLARE_INPUT(In,anyImagePointer);
     BBTK_DECLARE_OUTPUT(Out,itkImageTypePointer);
     BBTK_PROCESS(DoIt);
@@ -25,7 +26,8 @@ namespace bbitk
   
   //=================================================================
   // BlackBox description
-  BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(AnyImageToTypedImage);
+  BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(AnyImageToTypedImage,
+                                     bbtk::AtomicBlackBox);
   BBTK_NAME(bbtk::HumanTypeName<anyImagePointer>() + "To"
            +bbtk::HumanTypeName<T>());
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
@@ -63,8 +65,10 @@ namespace bbitk
   template <class itkImageTypePointer, class itkImageTypeConstPointer>
   class AnyImageToConstTypedImage : public bbtk::AtomicBlackBox
   {  
-    BBTK_USER_BLACK_BOX_INTERFACE(AnyImageToConstTypedImage,
-                                 bbtk::AtomicBlackBox);
+    BBTK_TEMPLATE2_BLACK_BOX_INTERFACE(AnyImageToConstTypedImage,
+                                      bbtk::AtomicBlackBox,
+                                      itkImageTypePointer,
+                                      itkImageTypeConstPointer);
     BBTK_DECLARE_INPUT(In,anyImagePointer);
     BBTK_DECLARE_OUTPUT(Out,itkImageTypeConstPointer);
     BBTK_PROCESS(DoIt);
@@ -74,7 +78,8 @@ namespace bbitk
   
   //=================================================================
   // BlackBox description
-  BBTK_BEGIN_DESCRIBE_TEMPLATE2_BLACK_BOX(AnyImageToConstTypedImage);
+  BBTK_BEGIN_DESCRIBE_TEMPLATE2_BLACK_BOX(AnyImageToConstTypedImage,
+                                      bbtk::AtomicBlackBox);
   BBTK_NAME(bbtk::HumanTypeName<anyImagePointer>() + "To" +
            bbtk::HumanTypeName<T2>());
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");