Estimates the area of the "on" pixels of bw. If bw is a binary image "on" pixels are defined as pixels valued 1. If bw is a grayscale image "on" pixels is defined as pixels with values larger than zero. This algorithm is not the same as counting the number of "on" pixels as it tries to estimate the area of the original object and not the image object.