]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbmaracasvisuContourStatistics.h
6466f2c0edbe71c796c104689b176db80c7611a0
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuContourStatistics.h
1 #ifndef __bbcreaMaracasVisuContourStatistics_h_INCLUDED__
2 #define __bbcreaMaracasVisuContourStatistics_h_INCLUDED__
3 #include "bbtkAtomicBlackBox.h"
4 #include "iostream"
5
6 namespace bbcreaMaracasVisu
7 {
8
9 class /*BBTK_EXPORT*/ ContourStatistics
10  : 
11    public bbtk::AtomicBlackBox
12 {
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);
24   void Process();
25 };
26
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);
42 }
43 // EO namespace bbcreaMaracasVisu
44
45 #endif // __bbcreaMaracasVisuContourStatistics_h_INCLUDED__
46