count only the black pixels inside the contour. [closed]

asked 2013-08-27 03:54:26 -0600

I want to count only the pixels I wanted like black . What is best method in opencv to count it in REAL TIME.

<strong>image description</strong>

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Guanta
close date 2013-08-27 04:06:14.353337

Comments

Is that a school assignment? You are not the first person who asked that and even the image seems familiar to me. So, please search in this forum first before you ask questions! I'll close the topic, if you think you have a new unique question you can open a new question.

Guanta gravatar imageGuanta ( 2013-08-27 04:04:20 -0600 )edit