/** * @file PSSBackgroundModel.h * @brief simple background models * @author Erik Rodner * @date 03/19/2009 */ #ifndef PSSBACKGROUNDMODELINCLUDE #define PSSBACKGROUNDMODELINCLUDE #ifdef NOVISUAL #include #else #include #endif #include "PostSemSeg.h" namespace OBJREC { /** simple background models */ class PSSBackgroundModel : public PostSemSeg { protected: int backgroundModelType; double threshold; int backgroundClass; public: enum { BGM_FIXED_ENTROPY_THRESHOLD = 0, BGM_ADAPTIVE_ENTROPY_THRESHOLD, BGM_NONE }; /** @param backgroundModelType select one method from the enum type of this class @param threshold some methods need a threshold or parameter */ PSSBackgroundModel ( int backgroundModelType, double threshold, int backgroundClass ); /** simple destructor */ virtual ~PSSBackgroundModel(); // refactor-nice.pl: check this substitution // old: virtual void postprocess ( Image & result, GenericImage & probabilities ); virtual void postprocess ( NICE::Image & result, GenericImage & probabilities ); }; } // namespace #endif