#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