00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00048 #ifdef _USE_VTK_
00049
00050 #ifndef __bbvtkSegmentationConnectivity_h_INCLUDED__
00051 #define __bbvtkSegmentationConnectivity_h_INCLUDED__
00052
00053 #include "bbtkAtomicBlackBox.h"
00054 #include <vtkImageData.h>
00055 #include <vtkImageCast.h>
00056 #include <vtkImageThreshold.h>
00057 #include <vtkImageSeedConnectivity.h>
00058
00059 namespace bbvtk
00060 {
00061
00062 class SegmentationConnectivity
00063 :
00064 public bbtk::AtomicBlackBox
00065 {
00066 BBTK_BLACK_BOX_INTERFACE(SegmentationConnectivity,bbtk::AtomicBlackBox);
00067 BBTK_DECLARE_INPUT(In,vtkImageData *);
00068 BBTK_DECLARE_INPUT(PositionXYZ,std::vector<int>);
00069 BBTK_DECLARE_INPUT(ThresholdMinMax,std::vector<int>);
00070 BBTK_DECLARE_OUTPUT(Out,vtkImageData *);
00071 BBTK_PROCESS(DoProcess);
00072 void DoProcess();
00073
00074 protected:
00075 virtual void bbUserConstructor();
00076 virtual void bbUserDestructor();
00077
00078 private:
00079 vtkImageCast *cast2;
00080 vtkImageCast *cast4;
00081 vtkImageThreshold *thresh2;
00082 vtkImageSeedConnectivity *connect2;
00083
00084
00085
00086 };
00087
00088 BBTK_BEGIN_DESCRIBE_BLACK_BOX(SegmentationConnectivity,bbtk::AtomicBlackBox);
00089 BBTK_NAME("SegmentationConnectivity");
00090 BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
00091 BBTK_DESCRIPTION("Segmentation with min max threshold and connectivity");
00092 BBTK_INPUT(SegmentationConnectivity,In,"Input image",vtkImageData *,"");
00093 BBTK_INPUT(SegmentationConnectivity,PositionXYZ,"vector with the Position [x y z]" , std::vector<int>,"");
00094 BBTK_INPUT(SegmentationConnectivity,ThresholdMinMax,"vector with the Threshold [min max]" , std::vector<int>,"");
00095 BBTK_OUTPUT(SegmentationConnectivity,Out,"Result image",vtkImageData *,"");
00096 BBTK_END_DESCRIBE_BLACK_BOX(SegmentationConnectivity);
00097
00098 }
00099
00100 #endif // __bbvtkSegmentationConnectivity_h_INCLUDED__
00101
00102
00103 #endif //_USE_VTK_