Fig. Simulation results of tracing of vehicle. // 找到最近的点画出其配对点,计算车流量 // 参数: // ContourNum – 轮廓数 // img - 图形指针 int CVPoint::GetPair( const int ContourNum, IplImage* img ) 在GetMinDist中不单纯的计算最短距离,应返回最大权重,这样效果更好。