opencv .step 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 matD;
cv::add(matA, matB, matD);
cv::Mat matE;
cv::addWeighted(matA, 1.0, matB, 1.0, 0.0, matE);
cv::Mat matD;
cv::add(matA, matB, matD);