First time here? Check out the FAQ!
answered 2017-03-28 02:58:19 -0600
mask values are 0 or 1. So you can substract 1 to mask
Mat idx; mask = 1_mask; findNonZero ( mask,idx);