PSSBackgroundModel.h 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #include "PostSemSeg.h"
  10. namespace OBJREC
  11. {
  12. /** simple background models */
  13. class PSSBackgroundModel : public PostSemSeg
  14. {
  15. protected:
  16. int backgroundModelType;
  17. double threshold;
  18. int backgroundClass;
  19. public:
  20. enum
  21. {
  22. BGM_FIXED_ENTROPY_THRESHOLD = 0,
  23. BGM_ADAPTIVE_ENTROPY_THRESHOLD,
  24. BGM_NONE
  25. };
  26. /**
  27. @param backgroundModelType select one method from the enum type of this class
  28. @param threshold some methods need a threshold or parameter
  29. */
  30. PSSBackgroundModel ( int backgroundModelType, double threshold, int backgroundClass );
  31. /** simple destructor */
  32. virtual ~PSSBackgroundModel();
  33. virtual void postprocess ( NICE::Image & result, NICE::MultiChannelImageT<double> & probabilities );
  34. };
  35. } // namespace
  36. #endif