X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuContourStatistics.h;fp=bbtk%2Fsrc%2FbbmaracasvisuContourStatistics.h;h=150632e2e353a3f24fa4231fd3b1e5817adb6d64;hb=44e4be7013ea566bd2bdefb9d48e1da0071c3d91;hp=0000000000000000000000000000000000000000;hpb=0db30daeff1ddf74d39313a91fce7e475bba62e4;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuContourStatistics.h b/bbtk/src/bbmaracasvisuContourStatistics.h new file mode 100644 index 0000000..150632e --- /dev/null +++ b/bbtk/src/bbmaracasvisuContourStatistics.h @@ -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*); + BBTK_DECLARE_INPUT(LstValuePosX,std::vector*); + BBTK_DECLARE_INPUT(LstValuePosY,std::vector*); + BBTK_DECLARE_INPUT(LstValuePosZ,std::vector*); + 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*,""); + BBTK_INPUT(ContourStatistics,LstValuePosX,"Pixel position X",std::vector*,""); + BBTK_INPUT(ContourStatistics,LstValuePosY,"Pixel position Y",std::vector*,""); + BBTK_INPUT(ContourStatistics,LstValuePosZ,"Pixel position Z",std::vector*,""); + 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__ +