Fusion 2 vector of float into 1 vector of cvPoint2f

asked 2012-11-19 11:13:40 -0500

David_Lavy gravatar image


Let's say I have two vectors std::vector< float > pX,pY. Is there any way I can fusion those 2 vectors into one single std::vector< cv::Point2f > points, where the vector pX is the X elements and pY the Y elements of the vector points? I know I can use a for loop, but I wanted to know a more matricial, or simpler function can achieve this.


edit retag flag offensive close merge delete