vector<:vector>> allcontourpoint;//二层容器 std::vector<:point> Pointpoly; //一层容器 allcontourpoint.pop_back(); //弹出上一个, allcontourpoint.push_back(Pointpoly); //存储一个 vector>contours;//轮廓 allcontourpoint.push_back(contours[i]); //存储一个 //i ,存储哪一个轮廓
转载于:https://www.cnblogs.com/rjjhyj/p/11479853.html