Blame view

src/test/regionassist.h 872 Bytes
8805b950   Liu Meng   物品遗留效果优化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  #ifndef __REGIONASSIST_H__
  #define __REGIONASSIST_H__
  #include "ms_region_surveilance.h"
  #include "cv.h"
  //using namespace cv;
  
  //描绘区域
  void DrawRegion(unsigned char* pRGBIn, region_info* pRegionInfo, int numROI, int widthStep);
  //画线
  void DrawLine(unsigned char* pRGBIn, int widthStep, const sy_point & p_roi, const sy_point & dir_point);
  //外接矩形描绘
  void ExternalRectangle(unsigned char* pRGBIn, int  width, int height, ms_object_info *ObjInfo, int ObjCount, int widthStep, int numROI);
  
  // 轨迹描绘
  void Trajectory(unsigned char* pRGBIn, ms_object_info *ObjInfo, int ObjCount, int width, int height, int widthStep, int numROI);
  
  //判断单向检测方向和绘制箭头
  void DrawArrow(IplImage * src, cv::Point  pStart, cv::Point  pEnd, int len, int alpha);
  int get_ArrowDir(IplImage *frame, CMPoint pROI0, CMPoint pROI1, CMPoint dir, cv::Point &pt1, cv::Point &pt2);
  #endif