I am trying to copy a vector of Point2f's into a vector of Point2d's. I am unable to directly cast the Point2f elements to Point2d, as in:
for (int i = 0 ; i < (int)vector1.size() ; i++)
{
vector2.push_back((cv::Point2d)vector1[i]);
}
The usual std way does not work either.
Example: std::vector<cv::Point2d> vector2(vector1.begin(), vector1.end());