1 | initial version |
this is more a c++ problem.
if you want to use push_back()
, you have to start with an empty vector, not one with 3 empty Mat's in it.
the way you do it now, leads to 6 Mat's in your vector, the 1st 3 being invalid.
2 | No.2 Revision |
this is more a c++ problem.
if you want to use push_back()
, you have to start with an empty vector, not one with 3 empty Mat's in it.
the way you do it now, leads to 6 Mat's in your vector, the 1st 3 being invalid.
maybe you want to brush up your c++ skills, and look at initializer lists, like:
vector<Mat> finalImgCh {Norm_b,Norm_g,Norm_r}; // c++11 way