Pixel Counting [closed]
How to count how many pixels are brighter on image, than some value?
How to count how many pixels are brighter on image, than some value?
Asked: 2018-10-27 08:56:20 -0600
Seen: 208 times
Last updated: Oct 28 '18
there is no delphi wrapper. In c++ you can use > and countnonzero
I use: cvMinMaxLoc (image, @minval, @maxval, minloc, maxloc); to find @maxval coordinates, but I want to count how many pixels are brighter than the RGB color 80:80:80.
OpenCV is completely incomprehensible to me, so I am asking for a ready example. ;)
@mpknap, please do not try like that.
your delphi wrappers use the since long defunkt opencv1.0 c-api, and the devs are removing it, piece by piece now.
please try with c++ or python / java wrappers, NOT delphi.
Thanks for explaining. Or maybe you will provide this instruction in C ++? I will try to translate it myself ...
https://github.com/Laex/Delphi-OpenCV