00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef HxSfStdev_h
00012 #define HxSfStdev_h
00013
00014 #include "HxSampleFunTem.h"
00015
00016 template <class ArgType, class ResType>
00017 class HxSfStdev : public HxSampleFunTem<ArgType,ResType>
00018 {
00019 public:
00020 HxSfStdev();
00021 virtual void init();
00022 virtual void next(ArgType pixV, ArgType maskV, HxPoint p);
00023 virtual ResType result();
00024 private:
00025 ResType _sum;
00026 ResType _sumSqr;
00027 HxScalarInt _num;
00028 };
00029
00030 #ifdef INC_TEMPLATE_SRC
00031 #include "HxSfStdev.c"
00032 #endif
00033
00034 #endif