]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkImageThresholdConnectivity.h
fc45bf2f0dc0f64dbda558ce1de4fd112716a9ed
[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     virutal void bbSetStatusAndPropagate(BlackBoxInputConnector* c, IOStatus s);
39
40
41     
42 //===== 
43 // 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)
44 //===== 
45 };
46
47 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageThresholdConnectivity,bbtk::AtomicBlackBox);
48   BBTK_NAME("ImageThresholdConnectivity");
49   BBTK_AUTHOR("InfoDev");
50   BBTK_DESCRIPTION("vtkImageThresholdConnectivity");
51   BBTK_CATEGORY("empty");
52
53   BBTK_INPUT(ImageThresholdConnectivity,In,"Input image",vtkImageData*,"");
54   BBTK_INPUT(ImageThresholdConnectivity,Point,"[x y z]  seed point",std::vector<int>,"");
55   BBTK_INPUT(ImageThresholdConnectivity,LstX,"LstX seeds in voxels",std::vector<int>,"");
56   BBTK_INPUT(ImageThresholdConnectivity,LstY,"LstY seeds in voxels",std::vector<int>,"");
57   BBTK_INPUT(ImageThresholdConnectivity,LstZ,"LstZ seeds in voxels",std::vector<int>,"");
58   BBTK_INPUT(ImageThresholdConnectivity,MaskValue,"( default [O 255] )    [Out In] values of the output mask",std::vector<double>,"");
59   BBTK_INPUT(ImageThresholdConnectivity,Threshold,"( default [O 100] )    [down upper] threshold to be segmented",std::vector<double>,"");
60   BBTK_INPUT(ImageThresholdConnectivity,Border,"(default 10)Border of the min and max positions",int,"");
61
62   BBTK_OUTPUT(ImageThresholdConnectivity,Out,"Output image",vtkImageData*,"");
63
64 BBTK_END_DESCRIBE_BLACK_BOX(ImageThresholdConnectivity);
65 //===== 
66 // 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)
67 //===== 
68 }
69 // EO namespace bbcreaVtk
70
71 #endif // __bbcreaVtkImageThresholdConnectivity_h_INCLUDED__
72