int thickness=1; //画检测边缘的线条粗细
CvScalar color = CV_RGB(255,0,0); //所绘制角点的颜色(红色)
point2=point;
CvPoint po1,po2;
po1.x=point1.x;
po2.x=point2.x;
po1.y=point1.y;
po2.y=point2.y; /*CPaintDC dc(this);
CPen penBlack;
penBlack.CreatePen(PS_SOLID, 3, RGB(0, 0, 0));
 CPen* pOldPen = dc.SelectObject(&penBlack);
dc.Rectangle(point1.x,point1.y,point.x,point.y);
dc.SelectObject(pOldPen);*/ cvRectangle(m_imgTemp, 
po1,
po2,
color,
thickness, 
0, 
0
);在调用cvRectangle时会造成gdi资源泄露 怎么解决