You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
735 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __MOTION_DETECTOR_HEADER__
  2. #define __MOTION_DETECTOR_HEADER__
  3. #include "../../../components/base/basicVideoAnalyzer.h"
  4. class motionDetector: public basicVideoAnalyzer {
  5. private:
  6. int m_iWidth;
  7. int m_iHeight;
  8. int m_iSST;
  9. int m_iCounterSST;
  10. int m_iWindow;
  11. int m_iCounterWindow;
  12. double m_dArea;
  13. bool m_bDilatePicture;
  14. Mat m_oMat;
  15. tContours m_vContours;
  16. tHierarhy m_vHierarchy;
  17. protected:
  18. virtual bool m_fImageAnalyzer( Mat &Picture );
  19. public:
  20. motionDetector();
  21. motionDetector( int Width, int Height, double Area );
  22. ~motionDetector();
  23. virtual void markup( Mat &Picture );
  24. void setParametersEx(int SST, int DetectionWindow);
  25. };
  26. #endif