Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to check if an image is total black

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?

How to check if an image is total black

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?suggestion? (I'm using C++)