PSSBackgroundModel.h 954 B

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