mat[] c++ code example
Example 1: ORing two cv mat objects
cv::Mat matA(3, 3, CV_8UC1, cv::Scalar(20));
cv::Mat matB(3, 3, CV_8UC1, cv::Scalar(80));
Example 2: ORing two cv mat objects
auto matC = matA + matB;
cv::Mat matA(3, 3, CV_8UC1, cv::Scalar(20));
cv::Mat matB(3, 3, CV_8UC1, cv::Scalar(80));
auto matC = matA + matB;