]> Creatis software - bbtk.git/blobdiff - packages/itk/src/bbitkTypedImageToAnyImage.h
=== MAJOR RELEASE ====
[bbtk.git] / packages / itk / src / bbitkTypedImageToAnyImage.h
index 2733e9fb2fc207577839db7f44c1facdbb7be7aa..edb82685e3aba183f1eb217c0677a28c96c8cd23 100644 (file)
@@ -3,7 +3,7 @@
 #ifndef __bbTypedItkImage2GenericItkImage_h__
 #define __bbTypedItkImage2GenericItkImage_h__
 
-#include "bbtkUserBlackBox.h"
+#include "bbtkAtomicBlackBox.h"
 #include "bbitkImage.h"
 #include "bbtkSystem.h"
 
@@ -11,12 +11,13 @@ namespace bbitk
 {
 
   //=================================================================
-  // UserBlackBox declaration
+  // BlackBox declaration
   template <class itkImageTypePointer>
-  class TypedImageToAnyImage : public bbtk::UserBlackBox
+  class TypedImageToAnyImage : public bbtk::AtomicBlackBox
   {  
-    BBTK_USER_BLACK_BOX_INTERFACE(TypedImageToAnyImage,
-                                 bbtk::UserBlackBox);
+    BBTK_TEMPLATE_BLACK_BOX_INTERFACE(TypedImageToAnyImage,
+                                     bbtk::AtomicBlackBox,
+                                     itkImageTypePointer);
     BBTK_DECLARE_INPUT(In,itkImageTypePointer);
     BBTK_DECLARE_OUTPUT(Out,anyImagePointer);
     BBTK_PROCESS(DoIt);
@@ -25,14 +26,17 @@ namespace bbitk
   //=================================================================
  
   //=================================================================
-  // UserBlackBox description
-  BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(TypedImageToAnyImage);
+  // BlackBox description
+  BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(TypedImageToAnyImage,
+                                     bbtk::AtomicBlackBox);
   BBTK_NAME(bbtk::HumanTypeName<T>()
            + "To" + bbtk::HumanTypeName<anyImagePointer>());
-  BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
-  BBTK_DESCRIPTION("Transforms a typed itk image ("+bbtk::HumanTypeName<T>()+
-                  ") into a generic itk image ("+
+  BBTK_AUTHOR("laurent.guigues at creatis.insa-lyon.fr");
+  BBTK_DESCRIPTION("Converts a typed itk image pointer ("
+                  +bbtk::HumanTypeName<T>()+
+                  ") into a generic itk image pointer ("+
                   bbtk::HumanTypeName<anyImagePointer>()+")");
+  BBTK_CATEGORY("adaptor");
   BBTK_DEFAULT_ADAPTOR();
   BBTK_TEMPLATE_INPUT(TypedImageToAnyImage,In,
                      "Input typed image",T);