3 #include "bbstdToString.h"
4 #include "bbitkImage.h"
5 #include "bbitkPackage.h"
12 //====================================================================
13 BBTK_USER_BLACK_BOX_TEMPLATE_IMPLEMENTATION(ToString,
14 bbtk::AtomicBlackBox);
15 //====================================================================
17 //====================================================================
18 template <> void ToString<bbtk::any<bbitk::ImagePointer> > ::DoIt()
21 itk::Object* o1 = bbGetInputIn().unsafe_get<itk::Object*>();
24 bbSetOutputOut( s.str() );
26 //====================================================================
30 using namespace bbstd;
33 // typedef bbstd::ToString ToString;
34 //====================================================================
35 // Add the specialized adaptors to the package
36 typedef bbitk::anyImagePointer anyItkImagePointer;
37 BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itk,ToString,
39 //typedef const bbtk::itkImage* itkImageConstPointer;
40 //BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(itkBase,ScalarToString,itkImageConstPointer);