Pixel Counting [closed]

asked 2018-10-27 08:56:20 -0600

mpknap gravatar image

updated 2020-10-24 14:53:02 -0600

How to count how many pixels are brighter on image, than some value?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by berak
close date 2018-10-27 10:24:26.883579

Comments

there is no delphi wrapper. In c++ you can use > and countnonzero

LBerger gravatar imageLBerger ( 2018-10-27 09:00:24 -0600 )edit

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 gravatar imagempknap ( 2018-10-27 09:06:43 -0600 )edit

@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.

berak gravatar imageberak ( 2018-10-27 09:10:09 -0600 )edit

Thanks for explaining. Or maybe you will provide this instruction in C ++? I will try to translate it myself ...

mpknap gravatar imagempknap ( 2018-10-27 09:12:41 -0600 )edit
1