cubiclewrapper.h

来自「tracciatore di mani con webcam」· C头文件 代码 · 共 43 行

H
43
字号
#if !defined(__CUBICLE_H__INCLUDED_)#define __CUBICLE_H__INCLUDED_#include <cv.h>#include <vector>using namespace std;#include "cubicles.h"#include "Rect.h"typedef vector<char> CStatusVector;class CubicleWrapper { public:  CubicleWrapper();  ~CubicleWrapper();  void Initialize(int width, int height);  void Process(IplImage* grayImage);  void DrawOverlay(IplImage* iplImage, int overlay_level) const;  void DrawMatches(IplImage* iplImage, int overlay_level) const;  CuScanMatch GetBestMatch();  bool GotMatches() const { return m_matches.size()>0; } protected:  CRect                     m_bbox;  int                       m_min_width, m_max_width;  int                       m_min_height, m_max_height;  mutable CvFont            m_cvFont;  CuScanMatchVector         m_matches;};#endif // __CUBICLE_H__INCLUDED_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?