1 | initial version |
Convert rect to Mat :
vector<Rect> x;
x.push_back(Rect(0, 0, 1, 1));
x.push_back(Rect(2, 2, 1, 1));
x.push_back(Rect(3, 3, 1, 1));
Mat w(x);
cout << w << "\n";
results are :
[0, 0, 1, 1;
2, 2, 1, 1;
3, 3, 1, 1]