X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_Slicer_PKG%2Fsrc%2FbbSlicerCastImage.h;fp=bbtk_Slicer_PKG%2Fsrc%2FbbSlicerCastImage.h;h=ba1237ac7f63d4e403254224d4a7c939adcfecaf;hb=e7b4e2c9254e9e431f74acc92e3f0d40fc5e7ef6;hp=0000000000000000000000000000000000000000;hpb=cd590ce5fff20d69c7060340235a35e9c2a9ef86;p=creaCLI.git diff --git a/bbtk_Slicer_PKG/src/bbSlicerCastImage.h b/bbtk_Slicer_PKG/src/bbSlicerCastImage.h new file mode 100644 index 0000000..ba1237a --- /dev/null +++ b/bbtk_Slicer_PKG/src/bbSlicerCastImage.h @@ -0,0 +1,62 @@ +#ifndef __bbSlicerCastImage_h_INCLUDED__ +#define __bbSlicerCastImage_h_INCLUDED__ + +#include "bbSlicer_EXPORT.h" +#include "bbtkAtomicBlackBox.h" + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "CreationTool.h" + +namespace bbSlicer { + + class bbSlicer_EXPORT CastImage + : + public bbtk::AtomicBlackBox { + BBTK_BLACK_BOX_INTERFACE ( CastImage , bbtk::AtomicBlackBox ) ; + + // GENERATED ARGS + +BBTK_DECLARE_INPUT ( InputVolume , std::string ); +BBTK_DECLARE_INPUT ( OutputVolume , std::string ); +BBTK_DECLARE_INPUT ( Type , std::string ); + + // EO GENERATED ARGS + + BBTK_PROCESS ( Process ) ; + void Process ( ) ; + private: + void execute ( std::string lib , int _argc , char * _argv[] ) ; + } ; + + BBTK_BEGIN_DESCRIBE_BLACK_BOX ( CastImage , bbtk::AtomicBlackBox ) ; + BBTK_NAME ( "CastImage" ) ; + BBTK_AUTHOR ( "Nicole Aucoin, BWH Ron Kikinis, BWH" ) ; + BBTK_DESCRIPTION ( "Cast a volume to a given data type.Use at your own risk when casting an input volume into a lower precision type!Allows casting to the same type as the input volume." ) ; + BBTK_CATEGORY ( "Filtering.Arithmetic" ) ; + + // GENERATED DESCRPTION + +BBTK_INPUT(CastImage , InputVolume , "InputVolume" , std::string, ""); +BBTK_INPUT(CastImage , OutputVolume , "OutputVolume" , std::string, ""); +BBTK_INPUT(CastImage , Type , "Type" , std::string, ""); + + // EO GENERATED DESCRIPTION + + BBTK_END_DESCRIBE_BLACK_BOX ( CastImage ) ; +} + +#endif // __bbSlicerCastImage_h_INCLUDED__ + +