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)
4 #ifndef __bbcreaVtkDistanceMap_h_INCLUDED__
5 #define __bbcreaVtkDistanceMap_h_INCLUDED__
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
11 #include "vtkImageData.h"
16 class bbcreaVtk_EXPORT DistanceMap
18 public bbtk::AtomicBlackBox
20 BBTK_BLACK_BOX_INTERFACE(DistanceMap,bbtk::AtomicBlackBox);
22 // 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)
25 BBTK_DECLARE_INPUT(In,vtkImageData*);
26 BBTK_DECLARE_INPUT(Slope,double);
27 BBTK_DECLARE_INPUT(Point1, std::vector<int>);
28 BBTK_DECLARE_INPUT(Point2, std::vector<int>);
30 BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
31 BBTK_DECLARE_OUTPUT(FinalPoint,std::vector<int>);
32 BBTK_DECLARE_OUTPUT(LstPathXOut,std::vector<int>);
33 BBTK_DECLARE_OUTPUT(LstPathYOut,std::vector<int>);
34 BBTK_DECLARE_OUTPUT(LstPathZOut,std::vector<int>);
36 BBTK_PROCESS(Process);
39 vtkImageData* imageoutput;
42 // 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 BBTK_BEGIN_DESCRIBE_BLACK_BOX(DistanceMap,bbtk::AtomicBlackBox);
47 BBTK_NAME("DistanceMap");
48 BBTK_AUTHOR("InfoDev");
49 BBTK_DESCRIPTION("Normaly mask or mask[0 255] + gaussian[5]");
50 BBTK_CATEGORY("empty");
52 BBTK_INPUT(DistanceMap,In,"Input image",vtkImageData*,"");
53 BBTK_INPUT(DistanceMap,Slope,"(default 10) Slope",double,"");
54 BBTK_INPUT(DistanceMap,Point1,"Start point",std::vector<int>,"");
55 BBTK_INPUT(DistanceMap,Point2,"End point (There is no guarantee of reaching this point.)",std::vector<int>,"");
57 BBTK_OUTPUT(DistanceMap,Out,"Output image",vtkImageData*,"");
58 BBTK_OUTPUT(DistanceMap,FinalPoint,"Final Point",std::vector<int>,"");
59 BBTK_OUTPUT(DistanceMap,LstPathXOut,"Vector path X",std::vector<int>,"");
60 BBTK_OUTPUT(DistanceMap,LstPathYOut,"Vector path Y",std::vector<int>,"");
61 BBTK_OUTPUT(DistanceMap,LstPathZOut,"Vector path Z",std::vector<int>,"");
63 BBTK_END_DESCRIBE_BLACK_BOX(DistanceMap);
65 // 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)
68 // EO namespace bbcreaVtk
70 #endif // __bbcreaVtkDistanceMap_h_INCLUDED__