1 #ifndef __bbcreaMaracasVisuContourStatistics_h_INCLUDED__
2 #define __bbcreaMaracasVisuContourStatistics_h_INCLUDED__
3 #include "bbtkAtomicBlackBox.h"
6 namespace bbcreaMaracasVisu
9 class /*BBTK_EXPORT*/ ContourStatistics
11 public bbtk::AtomicBlackBox
13 BBTK_BLACK_BOX_INTERFACE(ContourStatistics,bbtk::AtomicBlackBox);
14 BBTK_DECLARE_INPUT(LstValue,std::vector<double>*);
15 BBTK_DECLARE_INPUT(LstValuePosX,std::vector<double>*);
16 BBTK_DECLARE_INPUT(LstValuePosY,std::vector<double>*);
17 BBTK_DECLARE_INPUT(LstValuePosZ,std::vector<double>*);
18 BBTK_DECLARE_OUTPUT(Max,double);
19 BBTK_DECLARE_OUTPUT(Min,double);
20 BBTK_DECLARE_OUTPUT(Average,double);
21 BBTK_DECLARE_OUTPUT(StandarDeviation,double);
22 BBTK_DECLARE_OUTPUT(nPoints,int);
23 BBTK_PROCESS(Process);
27 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ContourStatistics,bbtk::AtomicBlackBox);
28 BBTK_NAME("ContourStatistics");
29 BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
30 BBTK_DESCRIPTION("Basic contour statistics");
31 BBTK_CATEGORY("math");
32 BBTK_INPUT(ContourStatistics,LstValue,"Pixel values",std::vector<double>*,"");
33 BBTK_INPUT(ContourStatistics,LstValuePosX,"Pixel position X",std::vector<double>*,"");
34 BBTK_INPUT(ContourStatistics,LstValuePosY,"Pixel position Y",std::vector<double>*,"");
35 BBTK_INPUT(ContourStatistics,LstValuePosZ,"Pixel position Z",std::vector<double>*,"");
36 BBTK_OUTPUT(ContourStatistics,Max,"Max",double,"");
37 BBTK_OUTPUT(ContourStatistics,Min,"Min",double,"");
38 BBTK_OUTPUT(ContourStatistics,Average,"Average",double,"");
39 BBTK_OUTPUT(ContourStatistics,StandarDeviation,"Standar Deviation",double,"");
40 BBTK_OUTPUT(ContourStatistics,nPoints,"Number of values",int,"");
41 BBTK_END_DESCRIBE_BLACK_BOX(ContourStatistics);
43 // EO namespace bbcreaMaracasVisu
45 #endif // __bbcreaMaracasVisuContourStatistics_h_INCLUDED__