3 ms·Counting the average size of black-colored connected components would work as well.by epsylon 13y agoCounting the average size of black-colored connected components would work as well.