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.

39 lines
876 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __VLFEAT_HEADERS__
  2. #define __VLFEAT_HEADERS__
  3. #include "../../../components/base/basicVideoAnalyzer.h"
  4. #include "../filter/filterImage.h"
  5. //#include "../../../data/cortex/base/basicImage.h"
  6. #include "../vl/dsift.h"
  7. #include "../vl/generic.h"
  8. #define DSIFT_STEP_X 28
  9. #define DSIFT_STEP_Y 15
  10. #define DSIFT_BIN_SIZE 7
  11. class vlfeatDetector : public basicVideoAnalyzer {
  12. private:
  13. int m_iWidth;
  14. int m_iHeight;
  15. filterImage *m_oFilter;
  16. //Mat m_oMat;
  17. //cortexImage *m_pCortexImage;
  18. VlDsiftKeypoint *m_pOldKeyPoints;
  19. int m_nOldKeyPoints;
  20. VlDsiftKeypoint *m_pNewKeyPoints;
  21. int m_nNewKeyPoints;
  22. VlDsiftFilter *m_pVlDsiftFilter;
  23. protected:
  24. bool m_fImageAnalyzer(Mat &Picture);
  25. public:
  26. vlfeatDetector();
  27. ~vlfeatDetector();
  28. void markup( Mat &Picture );
  29. };
  30. #endif