Definitions

# Summed Area Table

A Summed Area Table (also known as an Integral Image) is an algorithm for quickly and efficiently generating the sum of values in a rectangular subset of a grid. It was first introduced to the computer graphics world in 1984 for use in mipmaps but wasn't widely used in the computer vision community until its prominent use in the Viola and Jones robust real-time object detection framework twenty years later.

## The Algorithm

As the name suggests, the value at any point $\left(x,y\right)$ in the summed area table is just the sum of all the pixels above and to the left of $\left(x,y\right)$, inclusive: $sat\left(x,y\right) = sum_\left\{x\text{'} le x,y\text{'} le y\right\} i\left(x\text{'},y\text{'}\right)$

Moreover, the summed area table can be computed efficiently in a single pass over the image, using the fact that the value in the summed area table at $\left(x,y\right)$ is just:

$sat\left(x,y\right) = sat\left(x-1,y\right) + sum_\left\{x\text{'} le x\right\} i\left(x\text{'},y\right)$

Once the summed area table has been computed, the task of evaluating any rectangle can be accomplished in constant time with just four array references. Specifically, using the notation in the figure at right, the value is just:

$sum_\left\{A\left(x\right) le x\text{'} le B\left(x\right), A\left(y\right) le y\text{'} le D\left(y\right)\right\} i\left(x\text{'},y\text{'}\right) = sat\left(A\right) + sat\left(C\right) - sat\left(B\right) - sat\left(D\right)$

## References

Search another word or see summedon Dictionary | Thesaurus |Spanish