How to check if an image is total black [closed]

asked 2020-07-06 05:25:05 -0600

albeh95 gravatar image

updated 2020-07-06 05:35:59 -0600

Hi everyone, I'm trying to check if a threshold is empty (and so, if the result Mat is total black). I don't want to iterate each pixel and see if the total number of black pixels is equal to the total dimension of the Mat, but I'm looking for a faster way. Any suggestion? (I'm using C++)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by albeh95
close date 2020-07-06 06:02:26.322538

Comments

2
sturkmen gravatar imagesturkmen ( 2020-07-06 05:54:12 -0600 )edit

Thanks! Had just found it :)

albeh95 gravatar imagealbeh95 ( 2020-07-06 06:02:17 -0600 )edit