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.
|
|
#ifndef __OPTICAL_FLOW_HEADERS__
#define __OPTICAL_FLOW_HEADERS__
#include "../../../components/base/basicVideoAnalyzer.h"
#include "../filter/filterImage.h"
#define MAX_COUNT 1024
typedef vector< U8 > tArrayU8;typedef vector<float> tArrayFloat;
class opticalFlowDetector: public basicVideoAnalyzer{ private: int m_iWidth; int m_iHeight; double m_dArea; filterImage *m_oFilter;
Mat m_oMat; tArrayU8 m_vStatus; tArrayFloat m_vErr;
tPoints2F m_vOldPOI; tPoints2F m_vCurrentPOI;
tContours m_vContours; tHierarhy m_vHierarchy; TermCriteria *m_pDetectionCriteria; protected: bool m_fImageAnalyzer(Mat &Picture); public: opticalFlowDetector(); opticalFlowDetector( int Width, int Height, double Area ); ~opticalFlowDetector(); void markup( Mat &Picture );};
#endif
|