First time here? Check out the FAQ!
answered 2014-01-13 03:22:10 -0600
Use setTo method:
setTo
mat.setTo(cv::Scalar::all(0));