pointvector.cc
来自「VC视频对象的跟踪提取原代码(vc视频监控源码)」· CC 代码 · 共 48 行
CC
48 行
/*************************************************************** * C++ source * * File : PointVector.cc * * Module : PointVector * * Author : A M Baumberg * * Creation Date : Thu Feb 3 13:13:57 1994 * * Comments : A class for manipulating a N point vector * ***************************************************************/#include <cstdio>#include <cassert>#include "PointVector.h"#include "text_output.h"namespace ReadingPeopleTracker{void PointVector::map(const realno &ax, const realno &ay, PointVector &result){ assert (result.no_points >= no_points); if (result.no_points < no_points) { cerror << " bad call to PointVector::map " << endl; abort(); } Point2* pnt1 = point_data(); Point2* pnt2 = result.point_data(); Point2* epnt = &(point_data()[no_points]); while (pnt1 < epnt) { *pnt2++ = Point2(ax * pnt1->x - ay * pnt1->y, ay * pnt1->x + ax * pnt1->y); pnt1++; }}} // namespace ReadingPeopleTracker
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?