Haar-like features are an over complete set of two-dimensional
(2D) Haar functions, which can be used to encode local appearance
of objects [18]. They consist of two or more rectangular
regions enclosed in a template. The feature value f of a Haar-like
feature which has k rectangles is obtained as in the following