First time here? Check out the FAQ!
answered 2015-06-11 02:53:21 -0600
cnt_black = (r2-r1)*(c2-c2) - cv::countNonZero(sourceImage.rows(r1,r2).cols(c1,c2))