First time here? Check out the FAQ!
answered 2019-02-04 15:10:13 -0600
Mat mask=roi<100; img.setTo(0,mask)
updated 2019-02-04 15:10:40 -0600
updated 2019-02-04 15:12:12 -0600
see setTo
updated 2019-02-05 00:43:50 -0600
Mat mask=roi<100; img.setTo(0,mask) img.setTo(Scalar(0),mask)