In binarized images, there are ways to get the number of white pixel?
Hmm, no. You can use get_stats() to get what color is the largest count. Otherwise… we don’t have a popcount. Please create a feature bug request on the github. This is easy to add.