c# c++ opencv mat modify on c++ image created on c# exception on cvCopy 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 channels = std::vector<cv::Mat>{matA, matB};
cv::Mat matG;
cv::merge(channels, matG);