]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkDistanceMap.h
#3491 vtk9itk5wx3-macos
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkDistanceMap.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 __bbcreaVtkDistanceMap_h_INCLUDED__
5 #define __bbcreaVtkDistanceMap_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include <vtkVersionMacros.h>
12 #include "vtkImageData.h"
13
14 namespace bbcreaVtk
15 {
16
17 class bbcreaVtk_EXPORT DistanceMap
18  : 
19    public bbtk::AtomicBlackBox
20 {
21   BBTK_BLACK_BOX_INTERFACE(DistanceMap,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
26   BBTK_DECLARE_INPUT(In,vtkImageData*);
27   BBTK_DECLARE_INPUT(Slope,double);
28   BBTK_DECLARE_INPUT(AverageRadius,double);
29   BBTK_DECLARE_INPUT(Point1, std::vector<int>);
30   BBTK_DECLARE_INPUT(Point2, std::vector<int>);
31
32   BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
33   BBTK_DECLARE_OUTPUT(LengthPixels, int );
34   BBTK_DECLARE_OUTPUT(FinalPoint,std::vector<int>);
35   BBTK_DECLARE_OUTPUT(LstPathXOut,std::vector<int>);
36   BBTK_DECLARE_OUTPUT(LstPathYOut,std::vector<int>);
37   BBTK_DECLARE_OUTPUT(LstPathZOut,std::vector<int>);
38
39   BBTK_PROCESS(Process);
40   void Process();
41
42   vtkImageData* imageoutput;
43
44 //===== 
45 // 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)
46 //===== 
47 };
48
49 BBTK_BEGIN_DESCRIBE_BLACK_BOX(DistanceMap,bbtk::AtomicBlackBox);
50   BBTK_NAME("DistanceMap");
51   BBTK_AUTHOR("InfoDev");
52   BBTK_DESCRIPTION("Normaly mask or mask[0 255] + gaussian[5]");
53   BBTK_CATEGORY("empty");
54
55     BBTK_INPUT(DistanceMap,In,"Input image",vtkImageData*,"");
56     BBTK_INPUT(DistanceMap,Slope,"(default 10) Slope",double,"");
57     BBTK_INPUT(DistanceMap,AverageRadius,"(default 10) Average Radius of the tube",double,"");
58     BBTK_INPUT(DistanceMap,Point1,"Start point",std::vector<int>,"");
59     BBTK_INPUT(DistanceMap,Point2,"End point (There is no guarantee of reaching this point.)",std::vector<int>,"");
60
61     BBTK_OUTPUT(DistanceMap,Out,"Output image",vtkImageData*,"");
62     BBTK_OUTPUT(DistanceMap,LengthPixels,"Path Length",int,"");
63     BBTK_OUTPUT(DistanceMap,FinalPoint,"Final Point",std::vector<int>,"");
64     BBTK_OUTPUT(DistanceMap,LstPathXOut,"Vector path X",std::vector<int>,"");
65     BBTK_OUTPUT(DistanceMap,LstPathYOut,"Vector path Y",std::vector<int>,"");
66     BBTK_OUTPUT(DistanceMap,LstPathZOut,"Vector path Z",std::vector<int>,"");
67
68 BBTK_END_DESCRIBE_BLACK_BOX(DistanceMap);
69 //===== 
70 // 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)
71 //===== 
72 }
73 // EO namespace bbcreaVtk
74
75 #endif // __bbcreaVtkDistanceMap_h_INCLUDED__
76