I am a beginner to opencv / C ++ and would like your help with a problem that seems simple. As an example, I have this image:
... And would disregard the background, which will always be white, and the image is always black and white, leaving only the cloud to be able to count three things:
- The number of pixels of the figure (cloud only, disregarding the background).
- The number of white pixels. (cloud only)
- The number of black pixels. (cloud only)
I know that to achieve 2, with a subtraction with it the 3rd.
Thanks!