First time here? Check out the FAQ!
answered 2017-09-03 22:01:43 -0600
You can use : copyTo function.
inputMat.copyTo(outputMat, maskMat);