从cvpoint转换为cvpoint2d32f

时间:2013-05-27 11:23:23

标签: c++ visual-c++ opencv

如何从cvpoint转换为cvpoint2d32f?

1 个答案:

答案 0 :(得分:7)

CvPoint p = cvPoint(x,y);
CvPoint2D32f p2 = cvPoint2D32f(p.x,p.y);