Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I worked around it using C++ vector functions:

vector<Point> selected;
for (unsigned int i = 0; i < N; i++) {
  vector<Point> contour = ...
  selected.insert(selected.end(), contour.begin(), contour.end());
}
rotated_rect = minAreaRect(selected);