#ifndef __bbUtilitiesExtractVOI_h_INCLUDED__ #define __bbUtilitiesExtractVOI_h_INCLUDED__ #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vtkImageData.h" #include "vtkMetaImageWriter.h" #include "vtkExtractVOI.h" namespace bbUtilities { class /*BBTK_EXPORT*/ ExtractVOI : public bbtk::AtomicBlackBox { // BBTK_USER_BLACK_BOX_INTERFACE(ExtractVOI,bbtk::AtomicBlackBox); BBTK_BLACK_BOX_INTERFACE(ExtractVOI,bbtk::AtomicBlackBox); //================================================================== //Center point of the artery BBTK_DECLARE_INPUT(CenterPoint,std::vector< int >); //radius of the cube BBTK_DECLARE_INPUT(Radius,int); //Input image that has the artery to obtain the VOI BBTK_DECLARE_INPUT(Image,vtkImageData*); //VOI Output BBTK_DECLARE_OUTPUT(OutVOI,vtkImageData*); BBTK_PROCESS(Process); void Process(); void writeImage(vtkImageData* image); }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(ExtractVOI,bbtk::AtomicBlackBox); BBTK_NAME("ExtractVOI"); BBTK_AUTHOR("Juan Carlos Prieto"); BBTK_DESCRIPTION("Extract a VOI given a center point"); BBTK_CATEGORY("__CATEGORY__"); //Center point of the artery BBTK_INPUT(ExtractVOI,CenterPoint,"Center of vessel",std::vector< int >, ""); //Input image that has the artery to obtain the VOI BBTK_INPUT(ExtractVOI,Image,"Input image", vtkImageData*, ""); //VOI Output BBTK_OUTPUT(ExtractVOI,OutVOI,"VOI output",vtkImageData*, ""); BBTK_END_DESCRIBE_BLACK_BOX(ExtractVOI); } // EO namespace bbUtilities #endif // __bbUtilitiesExtractVOI_h_INCLUDED__