opencv c++ mat functions code example
Example 1: ORing two cv mat objects
auto channels = std::vector<cv::Mat>{matA, matB};
cv::Mat matG;
cv::merge(channels, matG);
Example 2: ORing two cv mat objects
auto matC = matA + matB;
auto channels = std::vector<cv::Mat>{matA, matB};
cv::Mat matG;
cv::merge(channels, matG);
auto matC = matA + matB;