00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef HxNftPercentile_h
00012 #define HxNftPercentile_h
00013
00014 #include <vector>
00015 #include "HxNeighbFunctorTem.h"
00016
00017 template <class ArgType, class ResType>
00018 class HxNftPercentile : public HxNeighbFunctorTem<ArgType,ResType>
00019 {
00020 public:
00021 HxNftPercentile(int perc, HxString name);
00022 virtual ~HxNftPercentile();
00023
00024 virtual void init();
00025 virtual void next(ArgType pixV, ArgType maskV, HxPoint p);
00026 virtual ResType result();
00027 private:
00028 int _perc;
00029 std::vector<ResType> _vals;
00030 };
00031
00032 #ifdef INC_TEMPLATE_SRC
00033 #include "HxNftPercentile.c"
00034 #endif
00035
00036 #endif