opencv matrix types code example
Example 1: ORing two cv mat objects
cv::Mat matE;
cv::addWeighted(matA, 1.0, matB, 1.0, 0.0, matE);
Example 2: ORing two cv mat objects
cv::Mat matF;
matF.push_back(matA);
matF.push_back(matB);
cv::Mat matE;
cv::addWeighted(matA, 1.0, matB, 1.0, 0.0, matE);
cv::Mat matF;
matF.push_back(matA);
matF.push_back(matB);