#ifndef __bbTypedItkImage2GenericItkImage_h__
#define __bbTypedItkImage2GenericItkImage_h__
-#include "bbtkUserBlackBox.h"
+#include "bbtkAtomicBlackBox.h"
#include "bbitkImage.h"
#include "bbtkSystem.h"
{
//=================================================================
- // 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);
//=================================================================
//=================================================================
- // 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);