Ask Your Question
0

How to label image regions based on the number of black pixels in a cell of a grid?

asked 2015-06-10 15:23:55 -0600

Mat29 gravatar image

How to label image regions based on the number of black pixels in a cell of a grid put on it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-11 02:53:21 -0600

 cnt_black = (r2-r1)*(c2-c2) - cv::countNonZero(sourceImage.rows(r1,r2).cols(c1,c2))
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-06-10 15:23:55 -0600

Seen: 199 times

Last updated: Jun 11 '15