Jav*_*ock 11
你需要第一个和第二个向量的for循环.像这样的东西:
vector< vector<Point> > contours;
for(int i= 0; i < contours.size(); i++)
{
for(int j= 0; j < contours[i].size();j++) // run until j < contours[i].size();
{
cout << contours[i][j] << endl; //do whatever
}
}
Run Code Online (Sandbox Code Playgroud)