1 | initial version |
If that code does not work, which actually should work like @LBerger pointed out, you could try to break it down a bit more, like the following code.
vector<Point2f> vector1;
vector<Point2d> vector2;
for (size_t i=0 ; i<vector1.size(); i++)
{
vector2.push_back( cv::Point2d( (double)vector1[i].x, (double)vector1[i].y ) );
}
Which works just fine over here also.