xxxxxxxxxx
cv::Mat matD;
cv::add(matA, matB, matD);
xxxxxxxxxx
cv::Mat matA(3, 3, CV_8UC1, cv::Scalar(20));
cv::Mat matB(3, 3, CV_8UC1, cv::Scalar(80));
xxxxxxxxxx
auto channels = std::vector<cv::Mat>{matA, matB};
cv::Mat matG;
cv::merge(channels, matG);