The forum have some related post for how to use push_back. I can use it like
Mat mat = (Mat_<uchar>(2, 4) << 5, 6, 0, 4, 0, 1, 9, 9);
Mat mat2 = (Mat_<uchar>(2, 4) << 5, 77, 0, 4, 2, 3, 9, 6);
//success
mat.push_back(mat2);
But I note there are other two usage when I use F12
to see the definition. Such as
I think it supports vector
, but I can not run it
//fail
vector<vector<uchar>> v1 = { { 5, 77, 0, 4 },{ 2, 3, 9, 6 } };
mat.push_back(v1);
//fail
vector<uchar> v2 = { 2, 3, 9, 6 };
mat.push_back(v2);
And another useage
But I cannot succeed to run it
mat.push_back(&mat2);
Can anybody tell me something? What have I missed something?