1 #ifndef __bbmaracasvisuContourStatistics_h_INCLUDED__
2 #define __bbmaracasvisuContourStatistics_h_INCLUDED__
3 #include "bbtkAtomicBlackBox.h"
6 namespace bbmaracasvisu
9 class /*BBTK_EXPORT*/ ContourStatistics
11 public bbtk::AtomicBlackBox
13 BBTK_BLACK_BOX_INTERFACE(ContourStatistics,bbtk::AtomicBlackBox);
14 //==================================================================
15 /// User callback called in the box contructor
16 virtual void bbUserConstructor();
17 /// User callback called in the box copy constructor
18 virtual void bbUserCopyConstructor();
19 /// User callback called in the box destructor
20 virtual void bbUserDestructor();
21 //==================================================================
22 BBTK_DECLARE_INPUT(LstValue,std::vector<double>*);
23 BBTK_DECLARE_INPUT(LstValuePosX,std::vector<double>*);
24 BBTK_DECLARE_INPUT(LstValuePosY,std::vector<double>*);
25 BBTK_DECLARE_INPUT(LstValuePosZ,std::vector<double>*);
26 BBTK_DECLARE_OUTPUT(Max,double);
27 BBTK_DECLARE_OUTPUT(Min,double);
28 BBTK_DECLARE_OUTPUT(Average,double);
29 BBTK_DECLARE_OUTPUT(StandarDeviation,double);
30 BBTK_DECLARE_OUTPUT(nPoints,int);
31 BBTK_PROCESS(Process);
35 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ContourStatistics,bbtk::AtomicBlackBox);
36 BBTK_NAME("ContourStatistics");
37 BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
38 BBTK_DESCRIPTION("Basic contour statistics");
39 BBTK_CATEGORY("math");
40 BBTK_INPUT(ContourStatistics,LstValue,"Pixel values",std::vector<double>*,"");
41 BBTK_INPUT(ContourStatistics,LstValuePosX,"Pixel position X",std::vector<double>*,"");
42 BBTK_INPUT(ContourStatistics,LstValuePosY,"Pixel position Y",std::vector<double>*,"");
43 BBTK_INPUT(ContourStatistics,LstValuePosZ,"Pixel position Z",std::vector<double>*,"");
44 BBTK_OUTPUT(ContourStatistics,Max,"Max",double,"");
45 BBTK_OUTPUT(ContourStatistics,Min,"Min",double,"");
46 BBTK_OUTPUT(ContourStatistics,Average,"Average",double,"");
47 BBTK_OUTPUT(ContourStatistics,StandarDeviation,"Standar Deviation",double,"");
48 BBTK_OUTPUT(ContourStatistics,nPoints,"Number of values",int,"");
49 BBTK_END_DESCRIBE_BLACK_BOX(ContourStatistics);
51 // EO namespace bbmaracasvisu
53 #endif // __bbmaracasvisuContourStatistics_h_INCLUDED__