One of the contributions of Viola and Jones was to use
summed-area tables, which they called
integral images. Integral images can be defined as two-dimensional
lookup tables in the form of a matrix with the same size of the original image. Each element of the integral image contains the sum of all pixels located on the up-left region of the original image (in relation to the element's position). This allows to compute sum of rectangular areas in the image, at any position or scale, using only four lookups: : \text{sum} = I(C) + I(A) - I(B) - I(D). \, where points A, B, C, D belong to the integral image I, as shown in the figure. Each Haar-like feature may need more than four lookups, depending on how it was defined. Viola and Jones's 2-rectangle features need six lookups, 3-rectangle features need eight lookups, and 4-rectangle features need nine lookups. == Tilted Haar-like features ==