First time here? Check out the FAQ!
answered 2013-06-10 05:05:01 -0600
Mat mask(image.size(), CV_8UC1, Scalar::all(0)); mask(ROI).setTo(Scalar::all(255));