]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkImageThresholdConnectivity.h
#3498 Connectivity Filter Threshold
[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(MaskValue,std::vector<double>);
31   BBTK_DECLARE_INPUT(Border,int);
32   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
33   BBTK_PROCESS(Process);
34   void Process();
35 //===== 
36 // 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)
37 //===== 
38 };
39
40 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageThresholdConnectivity,bbtk::AtomicBlackBox);
41   BBTK_NAME("ImageThresholdConnectivity");
42   BBTK_AUTHOR("InfoDev");
43   BBTK_DESCRIPTION("vtkImageThresholdConnectivity");
44   BBTK_CATEGORY("empty");
45
46   BBTK_INPUT(ImageThresholdConnectivity,In,"Input image",vtkImageData*,"");
47   BBTK_INPUT(ImageThresholdConnectivity,Point,"[x y z]  seed point",std::vector<int>,"");
48   BBTK_INPUT(ImageThresholdConnectivity,LstX,"LstX seeds in voxels",std::vector<int>,"");
49   BBTK_INPUT(ImageThresholdConnectivity,LstY,"LstY seeds in voxels",std::vector<int>,"");
50   BBTK_INPUT(ImageThresholdConnectivity,LstZ,"LstZ seeds in voxels",std::vector<int>,"");
51   BBTK_INPUT(ImageThresholdConnectivity,MaskValue,"( default [O 255] )    [Out In] values of the output mask",std::vector<double>,"");
52   BBTK_INPUT(ImageThresholdConnectivity,Border,"(default 10)Border of the min and max positions",int,"");
53
54   BBTK_OUTPUT(ImageThresholdConnectivity,Out,"Output image",vtkImageData*,"");
55
56 BBTK_END_DESCRIBE_BLACK_BOX(ImageThresholdConnectivity);
57 //===== 
58 // 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)
59 //===== 
60 }
61 // EO namespace bbcreaVtk
62
63 #endif // __bbcreaVtkImageThresholdConnectivity_h_INCLUDED__
64