where (i) is the mean intensity of the pixels in image x enclosed by
the ith rectangle. Henceforth we will refer to the quantity as the
rectangle mean. In (1), w(i) is the weight assigned to the ith rectangle.
Traditionally, the weights assigned to the rectangles of a Haar-like
feature are set to default integer numbers such that the following
equation is satisfied: