Ask Your Question

Revision history [back]

 cnt_black = (r2-r1)*(c2-c2) - cv::countNonZero(sourceImage.rows(r1,r2).cols(c1,c2))