00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef HxSftMoments_h
00012 #define HxSftMoments_h
00013
00014 #include "HxSampleFunctorTem.h"
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 template <class ArgType, class ResType>
00031 class HxSftMoments : public HxSampleFunctorTem<ArgType,ResType>
00032 {
00033 public:
00034 HxSftMoments(int order, HxString name);
00035 virtual ~HxSftMoments();
00036
00037 virtual void init();
00038 virtual void next(ArgType pixV, ArgType maskV, HxPoint p);
00039 virtual void result(HxValueListBackInserter res);
00040
00041 private:
00042 int _order;
00043 int _number;
00044 ResType* _sums;
00045 };
00046
00047 #ifdef INC_TEMPLATE_SRC
00048 #include "HxSftMoments.c"
00049 #endif
00050
00051 #endif