]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkImageThresholdConnectivity.h
7ed7beedcb1857aabb49a3a6fb99fdf8ca16b40f
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkImageThresholdConnectivity.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifndef __bbcreaVtkImageThresholdConnectivity_h_INCLUDED__
5 #define __bbcreaVtkImageThresholdConnectivity_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include <vtkImageData.h>
12 #include <vtkImageThresholdConnectivity.h>
13
14 namespace bbcreaVtk
15 {
16
17 class bbcreaVtk_EXPORT ImageThresholdConnectivity
18  : 
19    public bbtk::AtomicBlackBox
20 {
21   BBTK_BLACK_BOX_INTERFACE(ImageThresholdConnectivity,bbtk::AtomicBlackBox);
22 //===== 
23 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
24 //===== 
25   BBTK_DECLARE_INPUT(In,vtkImageData*);
26   BBTK_DECLARE_INPUT(Point,std::vector<int>);
27   BBTK_DECLARE_INPUT(LstX,std::vector<int>);
28   BBTK_DECLARE_INPUT(LstY,std::vector<int>);
29   BBTK_DECLARE_INPUT(LstZ,std::vector<int>);
30   BBTK_DECLARE_INPUT(Threshold,std::vector<double>);
31   BBTK_DECLARE_INPUT(MaskValue,std::vector<double>);
32   BBTK_DECLARE_INPUT(Border,int);
33   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
34   BBTK_PROCESS(Process);
35   void Process();
36     
37 //===== 
38 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
39 //===== 
40 };
41
42 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageThresholdConnectivity,bbtk::AtomicBlackBox);
43   BBTK_NAME("ImageThresholdConnectivity");
44   BBTK_AUTHOR("InfoDev");
45   BBTK_DESCRIPTION("vtkImageThresholdConnectivity");
46   BBTK_CATEGORY("empty");
47
48   BBTK_INPUT(ImageThresholdConnectivity,In,"Input image",vtkImageData*,"");
49   BBTK_INPUT(ImageThresholdConnectivity,Point,"[x y z]  seed point",std::vector<int>,"");
50   BBTK_INPUT(ImageThresholdConnectivity,LstX,"LstX seeds in voxels",std::vector<int>,"");
51   BBTK_INPUT(ImageThresholdConnectivity,LstY,"LstY seeds in voxels",std::vector<int>,"");
52   BBTK_INPUT(ImageThresholdConnectivity,LstZ,"LstZ seeds in voxels",std::vector<int>,"");
53   BBTK_INPUT(ImageThresholdConnectivity,MaskValue,"( default [O 255] )    [Out In] values of the output mask",std::vector<double>,"");
54   BBTK_INPUT(ImageThresholdConnectivity,Threshold,"( default [O 100] )    [down upper] threshold to be segmented",std::vector<double>,"");
55   BBTK_INPUT(ImageThresholdConnectivity,Border,"(default 10)Border of the min and max positions",int,"");
56
57   BBTK_OUTPUT(ImageThresholdConnectivity,Out,"Output image",vtkImageData*,"");
58
59 BBTK_END_DESCRIBE_BLACK_BOX(ImageThresholdConnectivity);
60 //===== 
61 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
62 //===== 
63 }
64 // EO namespace bbcreaVtk
65
66 #endif // __bbcreaVtkImageThresholdConnectivity_h_INCLUDED__
67