PSSBackgroundModel.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /**
  2. * @file PSSBackgroundModel.h
  3. * @brief simple background models
  4. * @author Erik Rodner
  5. * @date 03/19/2009
  6. */
  7. #ifndef PSSBACKGROUNDMODELINCLUDE
  8. #define PSSBACKGROUNDMODELINCLUDE
  9. #ifdef NOVISUAL
  10. #include <objrec/nice_nonvis.h>
  11. #else
  12. #include <objrec/nice.h>
  13. #endif
  14. #include "PostSemSeg.h"
  15. namespace OBJREC {
  16. /** simple background models */
  17. class PSSBackgroundModel : public PostSemSeg
  18. {
  19. protected:
  20. int backgroundModelType;
  21. double threshold;
  22. int backgroundClass;
  23. public:
  24. enum {
  25. BGM_FIXED_ENTROPY_THRESHOLD = 0,
  26. BGM_ADAPTIVE_ENTROPY_THRESHOLD,
  27. BGM_NONE
  28. };
  29. /**
  30. @param backgroundModelType select one method from the enum type of this class
  31. @param threshold some methods need a threshold or parameter
  32. */
  33. PSSBackgroundModel ( int backgroundModelType, double threshold, int backgroundClass );
  34. /** simple destructor */
  35. virtual ~PSSBackgroundModel();
  36. // refactor-nice.pl: check this substitution
  37. // old: virtual void postprocess ( Image & result, GenericImage<double> & probabilities );
  38. virtual void postprocess ( NICE::Image & result, GenericImage<double> & probabilities );
  39. };
  40. } // namespace
  41. #endif