]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuContourStatistics.h
The bbtk folder with the maracasvisu bbtk package was added to the creaMaracasVisu...
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuContourStatistics.h
diff --git a/bbtk/src/bbmaracasvisuContourStatistics.h b/bbtk/src/bbmaracasvisuContourStatistics.h
new file mode 100644 (file)
index 0000000..150632e
--- /dev/null
@@ -0,0 +1,54 @@
+#ifndef __bbmaracasvisuContourStatistics_h_INCLUDED__
+#define __bbmaracasvisuContourStatistics_h_INCLUDED__
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+
+namespace bbmaracasvisu
+{
+
+class /*BBTK_EXPORT*/ ContourStatistics
+ : 
+   public bbtk::AtomicBlackBox
+{
+  BBTK_BLACK_BOX_INTERFACE(ContourStatistics,bbtk::AtomicBlackBox);
+//==================================================================
+/// User callback called in the box contructor
+virtual void bbUserConstructor();
+/// User callback called in the box copy constructor
+virtual void bbUserCopyConstructor();
+/// User callback called in the box destructor
+virtual void bbUserDestructor();
+//==================================================================
+       BBTK_DECLARE_INPUT(LstValue,std::vector<double>*);
+       BBTK_DECLARE_INPUT(LstValuePosX,std::vector<double>*);
+       BBTK_DECLARE_INPUT(LstValuePosY,std::vector<double>*);
+       BBTK_DECLARE_INPUT(LstValuePosZ,std::vector<double>*);
+    BBTK_DECLARE_OUTPUT(Max,double);
+    BBTK_DECLARE_OUTPUT(Min,double);
+    BBTK_DECLARE_OUTPUT(Average,double);
+    BBTK_DECLARE_OUTPUT(StandarDeviation,double);
+       BBTK_DECLARE_OUTPUT(nPoints,int);
+  BBTK_PROCESS(Process);
+  void Process();
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(ContourStatistics,bbtk::AtomicBlackBox);
+BBTK_NAME("ContourStatistics");
+BBTK_AUTHOR("eduardo.davila [at] creatis.insa-lyon.fr");
+BBTK_DESCRIPTION("Basic contour statistics");
+BBTK_CATEGORY("math");
+    BBTK_INPUT(ContourStatistics,LstValue,"Pixel values",std::vector<double>*,"");
+    BBTK_INPUT(ContourStatistics,LstValuePosX,"Pixel position X",std::vector<double>*,"");
+    BBTK_INPUT(ContourStatistics,LstValuePosY,"Pixel position Y",std::vector<double>*,"");
+    BBTK_INPUT(ContourStatistics,LstValuePosZ,"Pixel position Z",std::vector<double>*,"");
+    BBTK_OUTPUT(ContourStatistics,Max,"Max",double,"");
+    BBTK_OUTPUT(ContourStatistics,Min,"Min",double,"");
+    BBTK_OUTPUT(ContourStatistics,Average,"Average",double,"");
+    BBTK_OUTPUT(ContourStatistics,StandarDeviation,"Standar Deviation",double,"");
+    BBTK_OUTPUT(ContourStatistics,nPoints,"Number of values",int,"");
+BBTK_END_DESCRIBE_BLACK_BOX(ContourStatistics);
+}
+// EO namespace bbmaracasvisu
+
+#endif // __bbmaracasvisuContourStatistics_h_INCLUDED__
+